Skip to content

zio-test: Scala.js: no test events #9629

@dubinsky

Description

@dubinsky

On JVM, SBT test interface events are emitted for individual tests; on Scala.js, they are missing.

Reading ZIO code, I see:

  • shared BaseTestTask class overrides sbt.testing.Task.execute() in terms of BaseTestTask.run();
  • which calls shared ZIOSpecAbstract.runSpecWithSharedRuntimeLayer();
  • which calls shared TestExecutor.run();
  • which calls shared ZTestEventHandlerSbt.handle();
  • which emits events with the results of individual tests;
  • on JVM, ZTestTask builds on the run() functionality inherited from BaseTestTask;
  • on Scala.js, ZTestTask defines its own overload of the execute() method, which emits only the "summary" SBT test interface event (and only if the overall suite fails).

Is there any hope for the missing events to start being emitted, like they are in all test frameworks that support SBT test interface on Scala.js?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions