Package org.junit.platform.suite.api
@NullMarked
package org.junit.platform.suite.api
Annotations for configuring a test suite on the JUnit Platform.
Execution
Test suites can be run on the JUnit Platform the
junit-platform-suite-engine module.
-
Annotation InterfacesClassDescription
@AfterSuiteis used to signal that the annotated method should be executed after all tests in the current test suite.@BeforeSuiteis used to signal that the annotated method should be executed before all tests in the current test suite.@ConfigurationParameteris a repeatable annotation that specifies a configurationkeyandvaluepair to be added to the discovery request when running a test suite on the JUnit Platform.@ConfigurationParametersis a container for one or more@ConfigurationParameterdeclarations.@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.@ConfigurationParametersResourcesis a container for one or more@ConfigurationParametersResourcedeclarations.Disable parent configuration parameters.@ExcludeClassNamePatternsspecifies regular expressions that are used to match against fully qualified class names when running a test suite on the JUnit Platform.@ExcludeEnginesspecifies the IDs ofTestEnginesto be excluded when running a test suite on the JUnit Platform.@ExcludePackagesspecifies the packages to be excluded when running a test suite on the JUnit Platform.@ExcludeTagsspecifies the tags or tag expressions to be excluded when running a test suite on the JUnit Platform.@IncludeClassNamePatternsspecifies regular expressions that are used to match against fully qualified class names when running a test suite on the JUnit Platform.@IncludeEnginesspecifies the IDs ofTestEnginesto be included when running a test suite on the JUnit Platform.@IncludePackagesspecifies the packages to be included when running a test suite on the JUnit Platform.@IncludeTagsspecifies the tags or tag expressions to be included when running a test suite on the JUnit Platform.@Selectis a repeatable annotation that specifies which tests to select based on prefixed selector identifiers.@SelectClassesspecifies the classes to select when running a test suite on the JUnit Platform.@SelectClasspathResourceis a repeatable annotation that specifies a classpath resource to select when running a test suite on the JUnit Platform.@SelectClasspathResourcesis a container for one or more@SelectClasspathResourcedeclarations.@SelectDirectoriesspecifies the directories to select when running a test suite on the JUnit Platform.@SelectFileis a repeatable annotation that specifies a file to select when running a test suite on the JUnit Platform.@SelectFilesis a container for one or more@SelectFiledeclarations.@SelectMethodis a repeatable annotation that specifies a method to select when running a test suite on the JUnit Platform.@SelectMethodsis a container for one or more@SelectMethoddeclarations.@SelectModulesspecifies the modules to select when running a test suite on the JUnit Platform.@SelectPackagesspecifies the names of packages to select when running a test suite on the JUnit Platform.@Selectsis a container for one or more@Selectdeclarations.@SelectUrisspecifies the URIs to select when running a test suite on the JUnit Platform.@Suitemarks a class as a test suite on the JUnit Platform.@SuiteDisplayNameis used to declare a custom display name for the annotated test class that is executed as a test suite on the JUnit Platform.