Packages

trait DirSuiteLike extends AnyFunSuiteLike

DirSuiteLike trait for DirSuite. At the moment this is actual implementation.

Annotations
@SuppressWarnings()
Linear Supertypes
AnyFunSuiteLike, Documenting, Alerting, Notifying, Informing, TestRegistration, TestSuite, Suite, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirSuiteLike
  2. AnyFunSuiteLike
  3. Documenting
  4. Alerting
  5. Notifying
  6. Informing
  7. TestRegistration
  8. TestSuite
  9. Suite
  10. Serializable
  11. Assertions
  12. TripleEquals
  13. TripleEqualsSupport
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class CheckingEqualizer[L] extends AnyRef
    Definition Classes
    TripleEqualsSupport
  2. class Equalizer[L] extends AnyRef
    Definition Classes
    TripleEqualsSupport
  3. trait NoArgTest extends () => Outcome with TestData
    Attributes
    protected
    Definition Classes
    TestSuite

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]
    Definition Classes
    TripleEqualsSupport
  5. final def ##: Int
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
    Definition Classes
    TripleEqualsSupport
  8. def ===(right: Null): TripleEqualsInvocation[Null]
    Definition Classes
    TripleEqualsSupport
  9. def ===[T](right: T): TripleEqualsInvocation[T]
    Definition Classes
    TripleEqualsSupport
  10. def alert: Alerter
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike → Alerting
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  13. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  14. macro def assertCompiles(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  15. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  16. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  17. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  18. def assertThrows[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
    Definition Classes
    Assertions
  19. macro def assertTypeError(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  20. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  21. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  22. def cancel(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  23. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  24. def cancel(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  25. def cancel()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  27. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  28. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  29. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  30. implicit def convertToEqualizer[T](left: T): Equalizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  31. def defaultEquality[A]: Equality[A]
    Definition Classes
    TripleEqualsSupport
  32. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  34. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
    Definition Classes
    Suite
  35. def expectedTestCount(filter: Filter): Int
    Definition Classes
    Suite
  36. def fail(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  37. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  38. def fail(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  39. def fail()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  40. def findReferences(testdir: Path, testname: Path): Seq[Path]

    Find references for testcase.

    Find references for testcase.

    Default logic to find references is following:

    use basename of testcase, e.g. filename of testcase without last extension, and append ".ref.*" glob to that basename. Then search under same directory, where testcase is located.

    For example:

    /path/to/dirsuite/testcase/test01.exec

    findFiles("/path/to/dirsuite/testcase", Glob("test01.ref.*"))

    testdir

    top level directory from where to look

    Attributes
    protected
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. def getDirSuiteTestCases(basedir: Path, testPattern: FindFilesPattern): Seq[TestCase]

    Find test cases under basedir, by using test pattern to match test cases.

    Find test cases under basedir, by using test pattern to match test cases.

    basedir

    of test directory

    testPattern

    pattern to find test cases

    returns

    found test cases

    Attributes
    protected
  43. def getExecArgumentSeparator: String

    Get separator for exec line splitting.

    Get separator for exec line splitting.

    This separator is used to split one exec line to actual arguments. Overload this if default ";" is not good for you.

    returns

    exec line separator

    Attributes
    protected
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. def ignore(testName: String, testTags: Tag*)(testFun: => Any)(implicit pos: Position): Unit
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike
  46. def ignoreDirSuiteTestCases(basedir: Path, testPattern: FindFilesPattern)(testFun: (Array[String]) => Any): Unit

    Ignore these dirSuite tests.

    Ignore these dirSuite tests.

    Overload this if youd don't like to see all testcases which are ignored. You could here just cal registerIgnoredTest and register e.g. pattern.

    basedir

    of test cases

    testPattern

    pattern to find test cases

    testFun

    test function to run with test cases

  47. def ignoreDualAssertionDirSuiteTestCases(basedir: Path, testPattern: FindFilesPattern)(beginTestFun: (Array[String]) => Any, lastTestFun: (Array[String]) => Any): Unit

    Ignore these dirSuite tests.

    Ignore these dirSuite tests.

    Overload this if youd don't like to see all testcases which are ignored. You could here just cal registerIgnoredTest and register e.g. pattern.

    basedir

    of test cases

    testPattern

    pattern to find test cases

    beginTestFun

    test function which is used 1 .. N-1 test steps

    lastTestFun

    test function which is used for the last test step

  48. def info: Informer
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike → Informing
  49. def intercept[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): T
    Definition Classes
    Assertions
  50. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  51. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  52. def mapArgs(testname: Path, args: Array[String]): Array[String]

    Map arguments before test execution.

    Map arguments before test execution. If you have to provide e.g. some default argument for each test case, then overload this function, and change arguments as needed. (Add, remove, or transform args).

    testname

    full path of testcase

    args

    original arguments

    returns

    args after transformation

    Attributes
    protected
  53. def mapOutput(testdir: Path, testname: Path, reference: Path): Path

    Map output filenames based on reference paths.

    Map output filenames based on reference paths.

    use basename of testcase, e.g. filename of testcase without last extension, and prefix "out.*" to that basename. Then append reference's filename suffix to that name. Reference file suffix is stripped (basename + ".ref.").

    For example:

    /path/to/dirsuite/testcase/test01.exec /path/to/dirsuite/testcase/test01.ref.output-name.txt

    output : out.test01.output-name.txt

    testdir

    directory of this test case

    testname

    full path to test case

    reference

    full path to reference file

    returns

    full path to mapped output file path

    Attributes
    protected
  54. def markup: Documenter
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike → Documenting
  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. def nestedSuites: IndexedSeq[Suite]
    Definition Classes
    Suite
  57. def note: Notifier
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike → Notifying
  58. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  59. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  60. def parseExec(testname: Path): Seq[Array[String]]

    Parse one exec file.

    Parse one exec file.

    If you have to change exec file format, look for tokenizer to parse each exec line and getExecArgumentSeparator to change exec's arguments separator.

    testname

    full path of testcase

    returns

    exec steps and arguments for each step

    Attributes
    protected
  61. def pending: Assertion with PendingStatement
    Definition Classes
    Assertions
  62. def pendingUntilFixed(f: => Unit)(implicit pos: Position): Assertion with PendingStatement
    Definition Classes
    Assertions
  63. def registerDirSuiteTestCase(pattern: FindFilesPattern, tc: TestCase, testFuns: List[(Array[String]) => Any]): Unit

    Register dirsuite

    Register dirsuite

    If you don't like see each test case to be printed on test output, you could override this function and just call testCaseExecutor here.

    pattern

    which was used to find current test case

    tc

    test case, see TestVector for available information

    testFuns

    test functions which are run with this test case

    Attributes
    protected
  64. def registerIgnoredDirSuiteTestCase(pattern: FindFilesPattern, testname: Path): Unit

    Register ignored test case.

    Register ignored test case.

    If you don't like see ignored test case to be printed on test output, you can overload this function and just don't do anything. Or even better, overload ignoreDirSuiteTestCases and register whole dirSuite once, so you still get information that there are ignored tests.

    pattern

    which was used to find current test case

    testname

    full path to test case

    Attributes
    protected
  65. final def registerIgnoredTest(testText: String, testTags: Tag*)(testFun: => Any)(implicit pos: Position): Unit
    Definition Classes
    AnyFunSuiteLike → TestRegistration
  66. final def registerTest(testText: String, testTags: Tag*)(testFun: => Any)(implicit pos: Position): Unit
    Definition Classes
    AnyFunSuiteLike → TestRegistration
  67. def rerunner: Option[String]
    Definition Classes
    Suite
  68. def run(testName: Option[String], args: Args): Status
    Definition Classes
    AnyFunSuiteLike → Suite
  69. def runDirSuiteTestCases(basedir: Path, testPattern: FindFilesPattern)(testFun: (Array[String]) => Any): Unit

    Find and Run test cases based on basedir and testPattern.

    Find and Run test cases based on basedir and testPattern.

    In addition of normal parameter, there is actual test method as parameter. This test method will be executed for each exec line, with arguments wich are defined by that exec-line.

    Below is listed typical test case:

    runDirSuiteTestCases(testdir, Glob("success/basic[0-9]*.exec")) { args: Array[String] =>
      assertResult(DemoApp.SUCCESS) {
        app.doTxt(args)
      }
    }
    basedir

    of test case directory

    testPattern

    pattern of test cases

    testFun

    test function which is used to test each test case

  70. def runDualAssertionDirSuiteTestCases(basedir: Path, testPattern: FindFilesPattern)(firstTestFun: (Array[String]) => Any)(lastTestFun: (Array[String]) => Any): Unit

    Run (and find) dual assertion test cases.

    Run (and find) dual assertion test cases. These are typically test cases where first steps are supposed to behave one way (succeeds), and then the last step is supposed to behave differently (fails).

    This is useful for example testing a case when triggering of error you must first run multiple successful steps.

    runDualAssertionDirSuiteTestCases(testdir, Glob("success/multiStepFail[0-9]*.exec"))
      { args: Array[String] =>
        // All steps at first must succeed
        assertResult(DemoApp.SUCCESS) {
          app.doFlaky(args)
        }
      } { args: Array[String] =>
          // Then the last step must fail
          assertThrows[RuntimeException] {
            app.doFlaky(args)
        }
      }
    basedir

    of test case directory

    testPattern

    Glob or Regex pattern of test cases

    firstTestFun

    test function for first execution steps

    lastTestFun

    test function for last execution step

  71. def runNestedSuites(args: Args): Status
    Attributes
    protected
    Definition Classes
    Suite
  72. def runTest(testName: String, args: Args): Status
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike → TestSuite → Suite
  73. def runTests(testName: Option[String], args: Args): Status
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike → Suite
  74. def selectValidator(testname: Path, reference: Path, output: Path): (Path, Path, Path) => Option[String]

    Select validator for this (one) test vector.

    Select validator for this (one) test vector.

    Default logic is that TestValidator.txtValidator is used for "*.txt" files, and TestValidator.xmlValidator is used for "*.xml" files.

    testname

    full path of this test case

    reference

    full path of reference file

    output

    full path of output file

    returns

    Validator for this test vector

    Attributes
    protected
  75. final val succeed: Assertion
    Definition Classes
    Assertions
  76. def suiteId: String
    Definition Classes
    Suite
  77. def suiteName: String
    Definition Classes
    Suite
  78. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  79. def tags: Map[String, Set[String]]
    Definition Classes
    AnyFunSuiteLike → Suite
  80. def test(testName: String, testTags: Tag*)(testFun: => Any)(implicit pos: Position): Unit
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike
  81. def testCaseExecutor(tc: TestCase, testFuns: List[(Array[String]) => Any]): Unit

    Execute one test case.

    Execute one test case.

    tc

    test case to be executed

    testFuns

    test functions to be used for testing

    Attributes
    protected
    Annotations
    @SuppressWarnings()
  82. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    AnyFunSuiteLike → Suite
  83. def testNames: Set[String]
    Definition Classes
    AnyFunSuiteLike → Suite
  84. def testsFor(unit: Unit): Unit
    Attributes
    protected
    Definition Classes
    AnyFunSuiteLike
  85. def toString(): String
    Definition Classes
    AnyFunSuiteLike → AnyRef → Any
  86. def tokenizer(execLine: String): Array[String]

    Tokenizer for exec-line.

    Tokenizer for exec-line.

    If default separator for arguments is not good for you, then overload getExecArgumentSeparator.

    If you have to use some other format for exec lines (e.g.) JSON, then overload this function. If one raw: exec line is:

    exec := "exec:" TEXT

    then this function will be fed with TEXT.

    execLine

    one exec line which to split, with "exec:" prefix stripped away.

    returns

    execline as args vector

    Attributes
    protected
  87. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  88. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  89. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  90. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  91. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  92. def withClue[T](clue: Any)(fun: => T): T
    Definition Classes
    Assertions
  93. def withFixture(test: NoArgTest): Outcome
    Attributes
    protected
    Definition Classes
    TestSuite

Deprecated Value Members

  1. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) => A): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  2. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) => B): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  3. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) => A): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  4. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  5. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) => B): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  6. final val styleName: String
    Definition Classes
    AnyFunSuiteLike → Suite
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Inherited from AnyFunSuiteLike

Inherited from Documenting

Inherited from Alerting

Inherited from Notifying

Inherited from Informing

Inherited from TestRegistration

Inherited from TestSuite

Inherited from Suite

Inherited from Serializable

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped