Previous Class
Solar_Cli_MakeTests

Solar_Cli_RunTests
Overview

Next Page
Constants

Solar_Cli_RunTests

Command to run a Solar test series.

Synopsis

**solar run-tests** [options] [CLASS]

If CLASS is empty, runs all test classes in the test directory, and recursively descends into subdirectories to run those tests as well.

If CLASS is given, runs that test class, and recursively descends into its subdirectory to run tests there as well.

If the --only option is specified, does not run tests in subdirectories.

Options

--config FILE
Path to the Solar.config.php file. Default false.
--dir _arg_
Directory where the test classes are located. Default is the current working directory.
--only
Run only the named test class, do not recurse into subdirectories.

Examples

Run the whole suite of Solar tests:

$ cd /path/to/tests/
$ solar run-tests

Run "remotely":

$ solar run-tests --dir /path/to/tests

Run the Vendor_Example test and all its subdirectories:

$ solar run-tests Vendor_Example

Run only the Vendor_Example test (no subdirectories):

$ solar run-tests --only Vendor_Example

Catalog

This class is part of the Solar_Cli package.

Inheritance:

Constants

None.

Public Properties

The Solar_Cli_RunTests class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Cli_RunTests class.

You can also view the list of all public, protected, and private methods.

__construct()
Constructor.
__destruct()
Destructor; closes STDOUT and STDERR file handles.
apiVersion()
Reports the API version for this class.
dump()
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
exec()
Public interface to execute the command.
getInfoHelp()
Returns the help text for this command.
getInfoOptions()
Returns an array of option flags and descriptions for this command.
locale()
Looks up class-specific locale strings based on a key.
setConsoleController()
Injects the console-controller object (if any) that invoked this command.