system-test: Runs system tests of applications.

[ library, mit, program, testing ] [ Propose Tags ] [ Report a vulnerability ]

System Test is a Haskell application which allows you to specify and run system tests of applications. Tests are defined in JSON files, whereby each test has a name, command, and expected output.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.1, 0.1.2
Change log CHANGELOG.md
Dependencies aeson (>=0.11.1.4), ansi-terminal (>=0.6.2.3), base (>=4.7 && <5), bytestring (>=0.10.4.0), process (>=1.2.0.0), system-test, text (>=1.2.2.1) [details]
License MIT
Copyright (c) 2016 Christopher Wells
Author Christopher Wells
Maintainer cwellsny@nycap.rr.com
Category Testing
Home page https://github.com/ExcaliburZero/system-test-haskell
Bug tracker https://github.com/ExcaliburZero/system-test-haskell/issues
Source repo head: git clone https://github.com/ExcaliburZero/system-test-haskell.git
Uploaded by ExcaliburZero at 2016-05-22T21:00:21Z
Distributions
Executables system-test
Downloads 1431 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-05-22 [all 1 reports]

Readme for system-test-0.1.2

[back to package description]

System Test Travis CI Status

System Test is a Haskell application which allows you to specify and run system tests of applications.

Recording of System Test

System tests can be defined in json files with the following format, see examples/ for more examples:

[
  {
    "name": "Hello World Test",
    "command": "echo 'Hello, World!'",
    "expectedOutput": "Hello, World!"
  },
  {
    "name": "GoodBye World Test",
    "command": "echo 'GoodBye, World!'",
    "expectedOutput": "Hello, World!"
  }
]

Note: System Test does not run the test commands in sandboxes, so be careful of running system tests that may cause harm to your system.

Usage

The System Test executable file should be run with all of the files containing system tests being passed in as arguments.

system-test test1.txt test2.txt
system-test tests/*.txt

Test File Structure

The system test files are formatted using JSON. The file should contain a list of Tests, each of which should have Strings for the test name, command, and expected output.

[
  {
    "name": "Hello World Test",
    "command": "echo 'Hello, World!'",
    "expectedOutput": "Hello, World!"
  },
  {
    "name": "GoodBye World Test",
    "command": "echo 'GoodBye, World!'",
    "expectedOutput": "Hello, World!"
  },
  {
    "name": "MultiLine Test",
    "command": "echo '1' && echo '2'",
    "expectedOutput": "1\n2"
  }
]

License

System Test is available under the MIT License, see LICENSE for more information.