izumi.distage.testkit.services.scalatest.dstest

Members list

Type members

Classlikes

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait ScalatestAbstractDistageSpec[F[_]] extends AbstractDistageSpec[F], ShouldVerb, MustVerb, CanVerb, DistageTestEnv, WithTestRegistration[F]

Attributes

Companion
object
Supertypes
trait CanVerb
trait MustVerb
trait ShouldVerb
trait TestRegistration[F]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait For1[F]
class Spec1[F]
class SpecIdentity
class SpecWiring[F, AppMain, Cfg]
trait For2[F]
class Spec2[F]
trait ForZIO
class SpecZIO
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Serialises ScalaTest test events on a per-suite, per-test basis so that downstream reporters see a strict TestStarting → terminator → TestStarting → terminator … sequence within each suite.

Serialises ScalaTest test events on a per-suite, per-test basis so that downstream reporters see a strict TestStarting → terminator → TestStarting → terminator … sequence within each suite.

This is required by several downstream ScalaTest reporters that pair-walk events within a suite and either throw RuntimeException("unexpected …") or otherwise corrupt their output when concurrent intra-suite test events interleave (distage testkit runs tests with parallelTests = Parallelism.Unlimited by default — see TestConfig.scala:79-82). The exception is silently swallowed by org.scalatest.CatchReporter:34-44, so the failure mode is "per-suite output file silently absent" rather than a crash — observed as JUnit XML test undercount.

Reporters that REQUIRE this serialisation (pair-walkers):

  • org.scalatest.tools.JUnitXmlReporter.processTest:284-345 (throws on stray test events)
  • org.scalatest.tools.XmlReporter:129-172, 467-469 (same pattern)
  • org.scalatest.tools.DashboardReporter.SuiteRecord.toXml:720-738 and TestRecord.addEvent:764-779 (throws on terminator without preceding start)

Reporters that BENEFIT (better-grouped output) but do not strictly require it:

  • org.scalatest.tools.HtmlReporter:1027-1083 — counter-style aggregation, tolerates interleaving but renders nicer with linearised events
  • Intellij's reporter (the original motivation for this class)

Reporters that are unaffected (per-event sinks):

  • All StringReporter-family sinks (PrintReporter, FileReporter, StandardOutReporter, StandardErrReporter)
  • MemoryReporter, FilterReporter, SbtDispatchReporter, SocketReporter, XmlSocketReporter

Attributes

Companion
object
Supertypes
trait TestReporter
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
trait WithTestRegistration[F[_]] extends TestRegistration[F]

Attributes

Supertypes
trait TestRegistration[F]
class Object
trait Matchable
class Any
Known subtypes
trait For1[F]
class Spec1[F]
class SpecIdentity
class SpecWiring[F, AppMain, Cfg]
trait For2[F]
class Spec2[F]
trait ForZIO
class SpecZIO
Show all