Packages

object CPU extends Tag

Tag object that indicates a test is CPU-intensive (i.e., consumes a lot of CPU time when it runs).

The corresponding tag annotation for this tag object is org.scalatest.tags.CPU. 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 CPU-intensive. 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.cpu

import org.scalatest._
import tagobjects.CPU

class SetSpec extends FlatSpec {

  "An empty Set" should "have size 0" taggedAs(CPU) in {
    assert(Set.empty.size === 0)
  }
}

Source
CPU.scala
Linear Supertypes
Tag, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CPU
  2. Tag
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val name: String
    Definition Classes
    Tag