org.scalatest

Filter

class Filter extends (Set[String], Map[String, Set[String]]) ⇒ List[(String, Boolean)]

Filter whose apply method determines which of the passed tests to run and ignore based on tags to include and exclude passed as as class parameters.

This class handles the org.scalatest.Ignore tag specially, in that its apply method indicates which tests should be ignored based on whether they are tagged with org.scalatest.Ignore. If"org.scalatest.Ignore" is not passed in the tagsToExclude set, it will be implicitly added. However, if thetagsToInclude option is defined, and the contained set does not include "org.scalatest.Ignore", then only those tests that are both tagged with org.scalatest.Ignore and at least one of the tags in the tagsToInclude set will be included in the result of apply and marked as ignored (so long as the test is not also marked with a tag other than org.scalatest.Ignore that is a member of the tagsToExcludeset. For example, if SlowAsMolasses is a member of the tagsToInclude set and a test is tagged with both org.scalatest.Ignore and SlowAsMolasses, andSlowAsMolasses appears in the tagsToExclude set, theSlowAsMolasses tag will "overpower" the org.scalatest.Ignore tag, and the test will be filtered out entirely rather than being ignored.

attributes: final
go to: companion
Inherited
  1. Hide All
  2. Show all
  1. Function2
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new Filter(tagsToInclude: Option[Set[String]], tagsToExclude: Set[String])

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def apply(testName: String, tags: Map[String, Set[String]]): (Boolean, Boolean)

    Filter one test name based on its tags.

  9. def apply(testNames: Set[String], tags: Map[String, Set[String]]): List[(String, Boolean)]

    Filter test names based on their tags.

  10. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  12. def curried: (Set[String]) ⇒ (Map[String, Set[String]]) ⇒ List[(String, Boolean)]

  13. def curry: (Set[String]) ⇒ (Map[String, Set[String]]) ⇒ List[(String, Boolean)]

  14. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  15. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  16. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  17. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  18. def hashCode(): Int

    Returns a hash code value for the object.

  19. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  20. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  21. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  22. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  23. def runnableTestCount(testNames: Set[String], tags: Map[String, Set[String]]): Int

    Returns the number of tests that should be run after the passed testNames and tags have been filtered with the tagsToInclude and tagsToExclude class parameters.

  24. def synchronized[T0](arg0: T0): T0

  25. val tagsToExclude: Set[String]

  26. val tagsToInclude: Option[Set[String]]

  27. def toString(): String

    Returns a string representation of the object.

  28. def tupled: ((Set[String], Map[String, Set[String]])) ⇒ List[(String, Boolean)]

  29. def wait(): Unit

  30. def wait(arg0: Long, arg1: Int): Unit

  31. def wait(arg0: Long): Unit