Class EUnitTestRunner
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Sortable
- Direct Known Subclasses:
EclipseEUnitTestRunner
Bridge runner between EUnit and JUnit. Can be used to turn an EUnit script into a JUnit Plug-in Test, for continuous integration.
This runner should only be used with test classes that implement the
IEUnitSuite interface for specifying the URI to the .eunit script and
reloading the models between tests.
Unlike previous EUnit test runners that only supported a subset of EUnit, this runner supports every feature in EUnit except for those specific to Ant, such as runTarget, useVariable, exportVariable and loadHutn.
Users can provide additional built-in operations for their tests by implementing
the IEUnitSuite.getOperationContributor() method appropriately. This can
be useful when invoking EVL code, for instance, as we can't access the Ant tasks
from a JUnit plugin test.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.junit.runner.DescriptiondescribeChild(EUnitTest child) protected voidRuns the module once test listeners have been set up.protected voidMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassesMethods inherited from class org.junit.runner.Runner
testCount
-
Field Details
-
module
-
suiteInstance
-
-
Constructor Details
-
EUnitTestRunner
public EUnitTestRunner(Class<? extends IEUnitSuite> testClass) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
getChildren
- Specified by:
getChildrenin classorg.junit.runners.ParentRunner<EUnitTest>
-
describeChild
- Specified by:
describeChildin classorg.junit.runners.ParentRunner<EUnitTest>
-
runChild
- Specified by:
runChildin classorg.junit.runners.ParentRunner<EUnitTest>
-
executeModule
Runs the module once test listeners have been set up. Subclasses may want to override this method for any other instrumentation (e.g. debugging).- Throws:
EolRuntimeException
-