Result checks

Path: /src/check.coffee compiled 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 - RegExp which should succeed on STDOUT
  • report - RegExp to extract text for Error message (optional)

matchStderr(ok, report)

Parameter:

  • ok - RegExp which should succeed on STDERR
  • report - RegExp to extract text for Error message (optional)

notMatchStderr(fail)

Parameter:

  • fail - RegExp which shouldn’t succeed on STDERR

stdoutLines(min, max)

Parameter:

  • min - Integer number of lines which should at least be output
  • max - Integer number of lines which should be output at max