Tag object that indicates a test is slow (i.e., takes a long time to run).
The corresponding tag annotation for this tag object is org.scalatest.tags.Slow.
This tag object can be used to tag test functions (in style traits other than Spec, in which tests are methods not functions) as being slow.
See the "tagging tests" section in the documentation for your chosen styles to see the syntax. Here's an example for FlatSpec:
package org.scalatest.examples.tagobjects.slow
import org.scalatest._
import tagobjects.Slow
class SetSpec extends FlatSpec {
"An empty Set" should "have size 0" taggedAs(Slow) in {
assert(Set.empty.size === 0)
}
}
Tag object that indicates a test is slow (i.e., takes a long time to run).
The corresponding tag annotation for this tag object is
org.scalatest.tags.Slow
. This tag object can be used to tag test functions (in style traits other thanSpec
, in which tests are methods not functions) as being slow. See the "tagging tests" section in the documentation for your chosen styles to see the syntax. Here's an example forFlatSpec
: