CI | Release | Snapshot | Discord |
---|---|---|---|
This is an optional dependency module, providing enhanced test runner support in the ZIO IntelliJ plugin.
Once enabled, the test results will be rendered in the integrated IntelliJ test runner, allowing navigation, sorting, retrying failed tests and more!
To enable the integrated runner, add the following to your SBT file, then re-import it in IntelliJ:
"dev.zio" %%% "zio-test-intellij" % zioVersion % "test"
The next time you run your tests from IntelliJ, the results will be rendered in the integrated test runner.
Please report any issues in the parent project: ZIO IntelliJ plugin.
This is an optional library dependency, allowing the test runner to output results in a format that IntelliJ/TeamCity can understand.
When enabled, IntelliJ will use it to render the test output in the integrated runner. Otherwise, the output from the ZIO test runner will be displayed in the standard process output console.
Due to the way IntelliJ currently works, it makes it very difficult to include libraries that target a specific version of third-party libraries or different Scala versions. IntelliJ's own Scala plugin currently targets Scala 2.12.10, so all plugin developers that depend on it must target this version as well. The ZIO Plugin depends on the Scala plugin for Scala code analysis and other Scala-specific features.
Separating the library allows decoupling the plugin from any specific ZIO version, allowing separate and independent release cycles.
The library is a small implementation of the built-in ZIO Test runner with a custom test result renderer that emits IntelliJ-specific output. IntelliJ launches ZIO tests as a command-line application, so the library has to be present on the classpath. By adding it to the build.sbt
it ensures that the correct version will be loaded.
In the future, the ZIO IntelliJ plugin will be able to download and use the correct version automatically, without having to add it to build.sbt
.
Great! Please report it to the ZIO IntelliJ plugin repo.
Documentation for contributors
See the Code of Conduct