zio.test.junit
Members list
Type members
Classlikes
Attributes
- Source
- ZTestJUnitRunner.scala
- Supertypes
-
class ZIOSpecDefaultclass ZIOSpec[TestEnvironment]class ZIOSpecAbstracttrait ZIOAppclass Objecttrait Matchableclass AnyShow all
Represents a failure of a test assertion. It needs to extend AssertionFailedError for Junit5 platform to mark it as failure
Represents a failure of a test assertion. It needs to extend AssertionFailedError for Junit5 platform to mark it as failure
Value parameters
- cause
-
The underlying cause of the failure, if any.
- message
-
A description of the failure.
Attributes
- Source
- TestFailed.scala
- Supertypes
-
class AssertionFailedErrorclass AssertionErrorclass Errorclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Describes a JUnit 5 test descriptor for a suite of ZIO tests.
Describes a JUnit 5 test descriptor for a suite of ZIO tests.
Value parameters
- label
-
The display name of this test descriptor.
- parent
-
The parent TestDescriptor.
- testClass
-
The class representing the suite of tests.
- uniqueId
-
The unique identifier for this test descriptor.
Attributes
- Constructor
-
Creates an instance of ZIOSuiteTestDescriptor.
- Companion
- object
- Source
- ZIOSuiteTestDescriptor.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ZIOSuiteTestDescriptor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- class
- Source
- ZIOTestClassDescriptor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Represents a JUnit 5 test descriptor for a ZIO-based test class
Represents a JUnit 5 test descriptor for a ZIO-based test class
Value parameters
- parent
-
The parent TestDescriptor.
- testClass
-
The class representing the test.
- uniqueId
-
A unique identifier for this TestDescriptor.
Attributes
- Companion
- object
- Source
- ZIOTestClassDescriptor.scala
- Supertypes
The ZIOTestClassRunner is responsible for running ZIO tests within a test class and reporting their results using the given JUnit 5 EngineExecutionListener.
The ZIOTestClassRunner is responsible for running ZIO tests within a test class and reporting their results using the given JUnit 5 EngineExecutionListener.
Value parameters
- descriptor
-
The ZIO test class JUnit 5 descriptor
Attributes
- Source
- ZIOTestClassRunner.scala
- Supertypes
-
class Objecttrait Matchableclass Any
JUnit 5 platform test class resolver for ZIO test implementation
JUnit 5 platform test class resolver for ZIO test implementation
Attributes
- Source
- ZIOTestClassSelectorResolver.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ZIOTestDescriptor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZIOTestDescriptor.type
Describes a JUnit 5 test descriptor for a single ZIO tests.
Describes a JUnit 5 test descriptor for a single ZIO tests.
Value parameters
- annotations
-
A map of annotations applied to this test descriptor.
- label
-
The display name or label for this test descriptor.
- parent
-
The parent descriptor of this test descriptor.
- testClass
-
The test class associated with this descriptor.
- uniqueId
-
A unique identifier for this test descriptor.
Attributes
- Constructor
-
Creates a new ZIOTestDescriptor instance.
- Companion
- object
- Source
- ZIOTestDescriptor.scala
- Supertypes
A JUnit platform test engine implementation designed for running ZIO tests.
A JUnit platform test engine implementation designed for running ZIO tests.
Attributes
- Source
- ZIOTestEngine.scala
- Supertypes
ZIOTestSource is an object responsible for creating instances of JUnit TestSource based on provided test class and optional annotations.
ZIOTestSource is an object responsible for creating instances of JUnit TestSource based on provided test class and optional annotations.
Attributes
- Source
- ZIOTestSource.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZIOTestSource.type
Custom JUnit 4 runner for ZIO Test Specs. Any instance of zio.test.ZIOSpecAbstract, that is a class (JUnit won't run objects), if annotated with @RunWith(classOf[ZTestJUnitRunner]) can be run by IDEs and build tools that support JUnit. Your spec can also extend JUnitRunnableSpec to inherit the annotation. In order to expose the structure of the test to JUnit (and the external tools), getDescription has to execute Suite level effects. This means that these effects will be executed twice (first in getDescription and then in run). Scala.JS is not supported, as JUnit TestFramework for SBT under Scala.JS doesn't support custom runners.
Custom JUnit 4 runner for ZIO Test Specs. Any instance of zio.test.ZIOSpecAbstract, that is a class (JUnit won't run objects), if annotated with @RunWith(classOf[ZTestJUnitRunner]) can be run by IDEs and build tools that support JUnit. Your spec can also extend JUnitRunnableSpec to inherit the annotation. In order to expose the structure of the test to JUnit (and the external tools), getDescription has to execute Suite level effects. This means that these effects will be executed twice (first in getDescription and then in run). Scala.JS is not supported, as JUnit TestFramework for SBT under Scala.JS doesn't support custom runners.
Attributes
- Source
- ZTestJUnitRunner.scala
- Supertypes