aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/scala/org/perl8/test/Test.scala
blob: 9868174cfe81d2e68d6d91d2b2c2e5aca40b594b (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 runRaw: Int =
    runTests(true)

  protected def runTests (raw: Boolean): Int
}