pme*_*pme 3 scala zio zio-test
I could not find anything on how to ignore a Suite or a Test with ZIO Test.
Whether in an example nor in the documentation (https://zio.dev/docs/usecases/usecases_testing)
There is an ignored in the test package object:
/**
* Creates an ignored test result.
*/
final val ignored: ZTest[Any, Nothing, Nothing] =
ZIO.succeed(TestSuccess.Ignored)
Run Code Online (Sandbox Code Playgroud)
But how can it be used in your code?
I tried different things, but with no success.
忽略测试的最佳方法是使用TestAspect.ignore. 例如:
test("A test that would otherwise fail") {
assert(true, isFalse)
} @@ ignore
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
393 次 |
| 最近记录: |