zio.test.junit

package zio.test.junit

Members list

Type members

Classlikes

abstract class JUnitRunnableSpec extends ZIOSpecDefault

Attributes

Source
ZTestJUnitRunner.scala
Supertypes
trait ZIOApp
class Object
trait Matchable
class Any
Show all
class TestFailed(message: String, cause: Throwable = ...) extends AssertionFailedError

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 AssertionError
class Error
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class ZIOSuiteTestDescriptor(parent: TestDescriptor, uniqueId: UniqueId, label: String, testClass: Class[_]) extends AbstractTestDescriptor

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
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
ZIOSuiteTestDescriptor.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
ZIOTestClassDescriptor.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ZIOTestClassDescriptor(parent: TestDescriptor, uniqueId: UniqueId, val testClass: Class[_]) extends AbstractTestDescriptor

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
class Object
trait Matchable
class Any

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 Object
trait Matchable
class 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
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
ZIOTestDescriptor.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ZIOTestDescriptor(parent: TestDescriptor, uniqueId: UniqueId, label: String, testClass: Class[_], annotations: TestAnnotationMap) extends AbstractTestDescriptor

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
class Object
trait Matchable
class Any
class ZIOTestEngine extends TestEngine

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
trait TestEngine
class Object
trait Matchable
class Any
object ZIOTestSource

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 Object
trait Matchable
class Any
Self type
class ZTestJUnitRunner(klass: Class[_]) extends Runner, Filterable

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
trait Filterable
class Runner
trait Describable
class Object
trait Matchable
class Any
Show all