-
Notifications
You must be signed in to change notification settings - Fork 7
Running a Test Suite
Mark Watson edited this page Jul 21, 2017
·
1 revision
A list of scripts to run can be specified in a 'json' file.
// comments are allowed :)
{
"name": "My Test Suite", // the test suite name
"timeout": 60, // the default timeout in seconds for each test
"settings": { // any settings.ini settings can be overridden here
"verbose": true
},
"tests": [ // the list of tests
{
"file": "basic.js", // path to script file relative to json file
"timeout": 10, // optional timeout of script in seconds
"name": "open url" // optional name for the test, displayed in test output
},
{ "file": "sitelogin.js" },
{ "file": "verifytext.js" }
]
}
The test script can be run as follows:
> bin/pizzascript scripts/testsuite.json