-
Notifications
You must be signed in to change notification settings - Fork 9
test
Runs all available tests on all answer programs in the current directory. Tests are read from the tst.json file within the directory. Every file that is not part of the current directory is silently ignored. The test command is the default tst command.
tst test [--output raw|debug|json|summary] [--timeout <seconds>] [<file name pattern>]
The --ouput (or -o) option sets the tst output format. The raw format outputs a single line per program tested. It prints the summary of the tests and the name of each file. The debug format (which is the default) is supposed to be used by students. It prints a detailed report for each failed test, comparing the expected and the observed output. The json format produces basic test data in json format, suitable for tool processing. Finally, the summary output produces a simplified report in which all the tests for each file are summarized in a binary way: for each file either a fail or a success will be produced (the output is yaml compatible).
Use the config command to configure the tst output and to avoid using the --output option too often.