public class SpringFitSuite extends FitSuite
@RunWith(SpringFitSuite.class)
@FitConfiguration(
inputDir = "src/test/fit",
outputDir = "target/fit",
includes = "**/*.fit.html")
public class MyFitSuite {
}
The suite first builds a list of input files to be run as FIT tests. The input files are
located under the inputDir root. The file patterns to be included or excluded are specified
by the includes and excludes properties. The default include pattern is
**/*.html, the exclude pattern list is empty by default.
Each of these properties can be a list of Strings
interpreted as Ant file patterns.
The suite then runs all files matching at least one of the include patterns and none of the exclude patterns.
Each test file will be a direct child of the suite, named by its relative path.
Each fixture class referenced from the FIT test files needs to be annotated with
ContextConfiguration to specify the Spring context configuration. Spring dependency
injection will be performed automatically after fixture instantiation.
| Constructor and Description |
|---|
SpringFitSuite(Class<?> klass) |
getChildren, runpublic SpringFitSuite(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorCopyright © 2011-2013. All Rights Reserved.