com.iinteractive.test

ExternalTest

class ExternalTest extends Test

Runs an external process which emits TAP, and parses it as a test.

This test class can be used if you have existing tests that you would like to be able to include in a test suite using this framework. You just need to write a test class for each external test that looks like this:

class MyTest1 extends ExternalTest("perl", "t/basic.t")

This will run your external process, and use its TAP stream as its output. This will allow it to, for instance, be a part of the test suite that runs via sbt test. As with any other test class, its stdout and stderr will be sent to Console.out and Console.err, where they can be overridden as needed.

Linear Supertypes
Test, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ExternalTest
  2. Test
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExternalTest(cmdLine: String*)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def run: Int

    Runs the 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.

    returns

    The exit code that the test produced. Success is indicated by 0, failure to run the correct number of tests by 255, and any other failure by the number of tests that failed. This should be used by reporters which run a single test, which can call sys.exit(exitCode)

    Definition Classes
    Test
  18. def runInHarness: Int

    Runs the test just like run, but in a way that makes sense when test results are being summarized rather than directly displayed.

    Runs the test just like run, but in a way that makes sense when test results are being summarized rather than directly displayed.

    Summarizing test reporters tend to repeatedly update the same line on the terminal, so this method makes calls to diag (which sends messages to stderr, where they are typically displayed as-is) prefix the message with a newline, to ensure that the output starts on its own line.

    Definition Classes
    Test
  19. def runTests(raw: Boolean): Int

    Attributes
    protected
    Definition Classes
    ExternalTestTest
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Test

Inherited from AnyRef

Inherited from Any

Ungrouped