This method can be called directly from the console with the specs2.
This method can be called directly from the console with the specs2.run object:
> specs2.run(spec1, spec2) or > import specs2._ > run(spec1, spec2)
If you want to pass specific arguments you can pass:
> import specs2.args._ > specs2.run(spec1)(nocolor)
Or you can set specific default with an implicit value:
> import specs2.args._ > implicit val myargs = nocolor > specs2.run(spec1)
exit the system with a specific code:
exit the system with a specific code:
- 0 if all the specifications are successful - 1 if there are only failures - 100 if there is any error - 101 if one of them could not even be executed (this is represented by None)
exit the system for one executed specification (None means that the specification could not be executed)
exit the system for one executed specification (None means that the specification could not be executed)
this method can be overriden for testing
this method can be overriden for testing
runner ouputing results in the Console