Package org.junit.platform.suite.api
Annotations for configuring a test suite on the JUnit Platform.
JUnit 4 Suite Support
Test suites can be run on the JUnit Platform in a JUnit 4 environment via
@RunWith(JUnitPlatform.class) with the junit-platform-runner.
JUnit 5 Suite Support
Test suites can be run on the JUnit Platform in a JUnit 5 environment via
@Suite with the junit-platform-suite-engine.
-
Annotation Types Summary Annotation Type Description AfterSuite @AfterSuiteis used to signal that the annotated method should be executed after all tests in the current test suite.BeforeSuite @BeforeSuiteis used to signal that the annotated method should be executed before all tests in the current test suite.ConfigurationParameter ConfigurationParameters @ConfigurationParametersis a container for one or more@ConfigurationParameterdeclarations.ConfigurationParametersResource @ConfigurationParametersResourceis a repeatable annotation that specifies a configuration file in Java's properties format on the classpath to be added to the discovery request when running a test suite on the JUnit Platform.ConfigurationParametersResources @ConfigurationParametersResourcesis a container for one or more@ConfigurationParametersResourcedeclarations.DisableParentConfigurationParameters Disable parent configuration parameters.ExcludeClassNamePatterns @ExcludeClassNamePatternsspecifies regular expressions that are used to match against fully qualified class names when running a test suite on the JUnit Platform.ExcludeEngines @ExcludeEnginesspecifies the IDs ofTestEnginesto be excluded when running a test suite on the JUnit Platform.ExcludePackages @ExcludePackagesspecifies the packages to be excluded when running a test suite on the JUnit Platform.ExcludeTags @ExcludeTagsspecifies the tags or tag expressions to be excluded when running a test suite on the JUnit Platform.IncludeClassNamePatterns @IncludeClassNamePatternsspecifies regular expressions that are used to match against fully qualified class names when running a test suite on the JUnit Platform.IncludeEngines @IncludeEnginesspecifies the IDs ofTestEnginesto be included when running a test suite on the JUnit Platform.IncludePackages @IncludePackagesspecifies the packages to be included when running a test suite on the JUnit Platform.IncludeTags @IncludeTagsspecifies the tags or tag expressions to be included when running a test suite on the JUnit Platform.Select @Selectis a repeatable annotation that specifies which tests to select based on prefixed selector identifiers.SelectClasses @SelectClassesspecifies the classes to select when running a test suite on the JUnit Platform.SelectClasspathResource @SelectClasspathResourceis a repeatable annotation that specifies a classpath resource to select when running a test suite on the JUnit Platform.SelectClasspathResources @SelectClasspathResourcesis a container for one or more@SelectClasspathResourcedeclarations.SelectDirectories @SelectDirectoriesspecifies the directories to select when running a test suite on the JUnit Platform.SelectFile @SelectFileis a repeatable annotation that specifies a file to select when running a test suite on the JUnit Platform.SelectFiles @SelectFilesis a container for one or more@SelectFiledeclarations.SelectMethod @SelectMethodis a repeatable annotation that specifies a method to select when running a test suite on the JUnit Platform.SelectMethods @SelectMethodsis a container for one or more@SelectMethoddeclarations.SelectModules @SelectModulesspecifies the modules to select when running a test suite on the JUnit Platform.SelectPackages @SelectPackagesspecifies the names of packages to select when running a test suite on the JUnit Platform.Selects @Selectsis a container for one or more@Selectdeclarations.SelectUris @SelectUrisspecifies the URIs to select when running a test suite on the JUnit Platform.Suite @Suitemarks a class as a test suite on the JUnit Platform.SuiteDisplayName @SuiteDisplayNameis used to declare a custom display name for the annotated test class that is executed as a test suite on the JUnit Platform.UseTechnicalNames Deprecated. since 1.8, in favor of the@Suitesupport provided by thejunit-platform-suite-enginemodule; to be removed in JUnit Platform 2.0