interface Spec and class TestCases.interface Spec and class TestCases.ProjectExtension.afterAll methods.interface Spec classes have been discovered.
This callback will be called after any interface DiscoveryExtensions have been invoked.interface Spec classes have been discovered.
This callback will be called after any interface DiscoveryExtensions have been invoked.interface Spec classes have been detected, but not yet instantiated
or executed.class TestCases that are part of a particular
interface Spec instance have completed.class TestCases that are part of a particular
interface Spec instance have completed.class TestCases that are part of a particular
interface Spec instance have completed.interface Spec, after all tests have completed for that spec.interface Spec, after all tests have completed for that spec.class TestCase has finished.class TestCase has finished.class TestCase has finished.ProjectExtension.beforeAll methods.interface Spec
to be used as part of a class TestCase execution.interface Spec
to be used as part of a class TestCase execution.interface Spec
to be used as part of a class TestCase execution.interface Spec, when the engine is preparing to
execute the tests for that spec.interface Spec, when the engine is preparing to
execute the tests for that spec.class TestCase is executed.class TestCase is executed.class TestCase is executed.class TestCase.class TestCase describes an actual block of code that will be tested.
It contains a reference back to the interface Spec instance in which it
is being executed.class TestCase.class TestCase.interface ProjectLevelExtensioninterface SpecExecutionOrder which will run specs that
contained a failed test on a previous run first, before specs where
all the tests passed.interface TestCaseFilter instances.interface SpecExecutionOrder which will run specs that
contained a failed test on a previous run first, before specs where
all the tests passed.interface SpecExecutionOrder which will run specs in
a lexicographic order.interface SpecExecutionOrder which will run specs in
a different random order each time the are executed.interface Spec.interface Spec.class TestCase.class TestCase.class TestCase is active.interface SpecExecutionOrder which will run specs in
a lexicographic order.interface TestListener instances.interface TestListener which will be notified of events during
execution of this spec.interface TestListener which will be notified of events during
execution of this spec.EnabledIfSystemProperty.named JVM system property.class TestContextAbstractProjectConfig.extensions.class TestContext meta data.interface SpecExecutionOrder which will run specs in
a different random order each time the are executed.class TestCase.class TestCase and then notifies the test runner of this nested test.class TestCase.interface Spec is the top level component in KotlinTest.interface Spec is the top level component in KotlinTest.interface SpecExecutionOrder which will
be used to sort specs before execution. By default, will return specs in
lexicographic order.AbstractProjectConfig.extensions or on a
per-spec basis by overriding extensions() in a interface Spec class.class Tags to be used by the Test Engine.class TestCases defined
in this interface Spec in addition to any defined on the individual
tests themselves.class TestCases defined
in this interface Spec in addition to any defined on the individual
tests themselves.@Testable is used to signal to IDEs and tooling vendors that the annotated or meta-annotated element is testable. In this context, the term "testable" means that the annotated method or class can be executed by a TestEngine as a test or test container on the JUnit Platform. Motivation for @Testable Some clients of the JUnit Platform, notably IDEs such as IntelliJ IDEA, operate only on sources for test discovery. Thus, they cannot use the full runtime discovery mechanism of the JUnit Platform since it relies on compiled classes. @Testable therefore serves as an alternative mechanism for IDEs to discover tests by analyzing the source code only. Common Use Cases @Testable will typically be used as a meta-annotation in order to create a custom composed annotation that inherits the semantics of @Testable. For example, the @Test and @TestFactory annotations in JUnit Jupiter are meta-annotated with @Testable. For test programming models that do not rely on annotations, test classes or test methods may be directly annotated with @Testable. Alternatively, if concrete test classes extend from a base class, the base class can be annotated with @Testable. Note that @Testable is an Inherited annotation. Requirements for IDEs and Tooling Vendors If a top-level class, static nested class, or inner class is not annotated or meta-annotated with @Testable but contains a method that is annotated or meta-annotated with @Testable, the class must be considered to be a testable class. If annotation hierarchies containing @Testable are present on classes or methods in compiled byte code (e.g., in JARs in the user's classpath), IDEs and tooling vendors must also take such annotation hierarchies into consideration when performing annotation processing for source code. Restrictions for TestEngine Implementations A TestEngine must not in any way perform discovery based on the presence of @Testable. In terms of discovery, the presence of @Testable should only be meaningful to clients such as IDEs and tooling vendors. A TestEngine implementation is therefore required to discover tests based on information specific to that test engine (e.g., annotations specific to that test engine).class TestCase describes an actual block of code that will be tested.
It contains a reference back to the interface Spec instance in which it
is being executed.class TestCase describes an actual block of code that will be tested.
It contains a reference back to the interface Spec instance in which it
is being executed.class TestCase.class TestCase.interface Spec.
The value in a interface Spec is always taken in preference to the value here.
Nested tests will always be executed in discovery order.class TestCases in this spec.
If this function returns a null value, then the value set in
the class AbstractProjectConfig will be used.class TestCases in this spec.
If this function returns a null value, then the value set in
the class AbstractProjectConfig will be used.class TestCase instances for this Spec.class TestCase instances for this Spec.class TestCase instances for this Spec.class TestContext is used as the receiver of a closure that is associated with a class TestCase.
This allows the scope body to interact with the test engine, for instance, adding metadata
during a test, reporting that an error was raised, or notifying the discovery
of a nested scope.class TestContext is used as the receiver of a closure that is associated with a class TestCase.
This allows the scope body to interact with the test engine, for instance, adding metadata
during a test, reporting that an error was raised, or notifying the discovery
of a nested scope.class TestCase instances from a Spec, ordered according
to the enum TestCaseOrder specified in the spec (or the project if not in the spec).
Captures information on focused tests.Tag.getName.