Result checks
Path:
/src/check.coffeecompiled to/lib/check.js
This module contains different methods which all can be used for result checking on an already done job. Each of them can be configured within the job to run.
nothing()
Dummy function which is always ok.
noExitCode()
Check that the job didn’t return an error code.
exitCode(code…)
Parameter:
Multiple Integer codes which are allowed.
noStderr()
Check that there is nothing output on STDOUT by the job.
noStdout()
Check that there is nothing output on STDERR by the job.
stderr()
Check that there was an output on STDERR from the job
stdout()
Check that there was an output on STDOUT from the job
matchStdout(ok, report)
Parameter:
ok-RegExpwhich should succeed on STDOUTreport-RegExpto extract text forErrormessage (optional)
matchStderr(ok, report)
Parameter:
ok-RegExpwhich should succeed on STDERRreport-RegExpto extract text forErrormessage (optional)
notMatchStderr(fail)
Parameter:
fail-RegExpwhich shouldn’t succeed on STDERR
stdoutLines(min, max)
Parameter:
min-Integernumber of lines which should at least be outputmax-Integernumber of lines which should be output at max