Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled test (feature request) #256

Open
k0ala opened this issue Oct 5, 2021 · 0 comments
Open

disabled test (feature request) #256

k0ala opened this issue Oct 5, 2021 · 0 comments

Comments

@k0ala
Copy link

k0ala commented Oct 5, 2021

It would be great to have a way to disable a test, rather than commenting it out. A disabled test would still show up in the output. Let's say I have the following suite:

val tests = Tests {
  test("always succeds") {
    true ==> true
  }
  test("always fails") {
    true ==> false
  }
  disabled("fails at the moment") {
    true ==> false
  }
}

This would yield the following

+ my.package.suite.always succeds 3ms  
- my.package.suite.fails at the moment DISABLED
X my.package.suite.always fails 0ms 
  java.lang.AssertionError: assertion failed: ==> assertion failed: true != false
    scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
    utest.asserts.Asserts$ArrowAssert.$eq$eq$greater(Asserts.scala:90)
    my.package.suite$.$init$$$anonfun$7$$anonfun$6(suite.scala:29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant