With TEST.run
, there’s a common pattern to use it to import utility modules, and we might end up having to start every test case with using TEST.run to import the same file every where.
Would be nice to a json config file like uilicious.config.json
, which allows us to hook onto the start and the end of every tests to run specific snippets, for example:
// what uilicious.config.json might look like
{
// runs at the start of every test
"before": [
"_util/date",
"_pageModels/LoginPage",
"_setup/CreateTestUser"
],
// runs at the end of every test
"after": [
"_teardown/DeleteTestUser"
]
}
Or alternatively, a javascript config file uilicious.config.js
, which basically exports the json configuration object as specified above.