aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/scala/org/perl8/test/Test.scala
blob: b877a3fc2a3c53a6b55bd109b2bbbb73ed8017ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package org.perl8.test

/** Base trait for test classes in this framework
  */
trait Test {
  /** Runs the test. The TAP stream will be written to Console.out and
    * Console.err, so you can swap these out as required in order to parse it.
    */
  def run: Int =
    runTests(false)

  def runInHarness: Int =
    runTests(true)

  protected def runTests (terminalInUse: Boolean): Int
}