Lens command

Running Tests

If you provide no arguments, Lens will run all of your tests:

lens

But if you provide one or more paths, Lens will run only the tests at the specified locations:

lens MyFile.php MyDirectory

Reports

Lens can provide reports in different formats.

Generate an issues report:

lens --issues=stdout

Generate the HTML code-coverage directory:

lens --coverage="lens/coverage"

Generate an xUnit report:

lens --xunit="lens/xunit.xml"

Generate a TAP report:

lens --tap="lens/tap.txt"

Version

View the version information:

lens --version

Is your version of Lens up to date? Here are the current releases for comparison.