patterntesting.runtime.annotation
Annotation Type SmokeTest


@Documented
@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface SmokeTest

For fast CI build it is helpful to mark important JUnit tests and test method as SmokeTest. If the JUnit tests are started with the system property "patterntesting.runSmokeTest" set then only these marked test classes and methods will be executed. This will help you to start only the important tests for a faster build.
For finer granularity a level could be set. This level can be set with the same property, e.g. "-Dpatterntesting.runSmokeTest=5". Then only tests with level 5 or less will be executed. The other tests with level 6 or higher will be skipped.
Note: this feature is reserved for future use. If you would like it raise a feature request at "http://sourceforge.net/tracker/?atid=454320&group_id=48833".

Since:
1.0
Author:
oliver

Optional Element Summary
 int level
          You are free to define your only levels here.
 String value
          You can change the default string to give a reason why the test will be executed in "SmokeTest mode".
 

value

public abstract String value
You can change the default string to give a reason why the test will be executed in "SmokeTest mode".

Default:
"marked as @SmokeTest"

level

public abstract int level
You are free to define your only levels here. Normally "1" is the highest level. You can replace "level" by "priority" if you want - it has the same meaning here. It is not forbidden to define a level "0" or a negative level.

Default:
1


Copyright © 2002–2014 PatternTesting Team. All rights reserved.