disu.se

CommandlineClass

Namespace

Lookout::Interfaces

Ancestors
  1. Object

Command-line interface to Lookout.

Constructor

initialize(argumentsArray<String> = ARGV, pwdString = Dir.pwd, ioIO = $stderr)#

Processes arguments, looking for options, running from the directory pwd and outputting results to io.

Valid arguments are

  • --: Stops processing of options, treating remaining arguments as files

  • -rFEATURE: Requires FEATURE

  • -lLINE: Only runs expectation closest before or on LINE

  • -c: Reports test coverage

  • FILENAME: Loads expectations from FILENAME, relative to pwd

RaisesArgumentError

If an unknown option exists among arguments

Instance Methods

call#

Requires requested features, sets up coverage reporting, if desired, and checks the requested expectations. Coverage reporting will only be done if all expectations passed.

ReturnsBoolean

True if all expectations passed