protoj.lang.internal
Class JunitCommand
java.lang.Object
protoj.lang.internal.JunitCommand
public final class JunitCommand
- extends java.lang.Object
The command responsible for executing junit tests. The JunitBody instance
that implements the command functionality is added later on in the
StandardProject constructor.
Executes the junit tests in the project classes directory. The following
options are supported:
1. -includes: the ant pattern describing the classes that should be executed
as junit tests.
2. -excludes: the ant pattern describing the classes that should not be
executed as junit tests.
3. If neither includes or excludes options are provided then the default
behavior applies, which is to execute all tests whose name includes 'Test'.
Example: jonny$ ./protoj.sh test
Example: jonny$ ./protoj.sh test -includes ++/MyTest.java
(would like to use astrix not +, but it breaks the javadocs)
- Author:
- Ashley Williams
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JunitCommand
public JunitCommand(StandardProject project)
getDelegate
public Command getDelegate()
getIncludes
public joptsimple.OptionSpec<java.lang.String> getIncludes()
getExcludes
public joptsimple.ArgumentAcceptingOptionSpec<java.lang.String> getExcludes()