According to the .saulrc
, it grabs all the testable files from your project - looks for the comments that follow that pattern above, and parses them. So in the case of
// @t "should call saul when the threat is imminent" shouldCallSaul('imminent') equals true
- "should call saul when the threat is imminent" is your test description.
shouldCallSaul
is the testable function['imminent']
are the arguments.equals
is the engine.true
is the expected output.
Then the engine equals
- referring to the engine definition in a engines/engine.js
file somewhere will generate the test for you. It will just run the testable function with the arguments inside the engine - and do the comparison against the expected output.
When it generates a test, it does not generate a "file". Rather, it will generate the test on the fly, in-memory, and feed it to your test runner.