Package sbt.testing

Interface Framework


  • public interface Framework
    Interface implemented by test frameworks.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Fingerprint[] fingerprints()
      An array of Fingerprints that specify how to identify test classes during discovery.
      java.lang.String name()
      A human-friendly name of the test framework that this object represents.
      Runner runner​(java.lang.String[] args, java.lang.String[] remoteArgs, java.lang.ClassLoader testClassLoader)
      Initiates a run.
    • Method Detail

      • name

        java.lang.String name()
        A human-friendly name of the test framework that this object represents.
      • fingerprints

        Fingerprint[] fingerprints()
        An array of Fingerprints that specify how to identify test classes during discovery.
      • runner

        Runner runner​(java.lang.String[] args,
                      java.lang.String[] remoteArgs,
                      java.lang.ClassLoader testClassLoader)
        Initiates a run.

        If a client invokes this method before a previously initiated run has completed, the test framework may throw IllegalStateExceptionto indicate it cannot perform the two runs concurrently.

        Parameters:
        args - the test-framework-specific arguments for the new run
        remoteArgs - the test-framework-specific remote arguments for the run in a forked JVM
        testClassLoader - a class loader to use when loading test classes during the run
        Returns:
        a Runner representing the newly started run.
        Throws:
        java.lang.IllegalStateException - if the test framework is unable to initiate a run because it is already performing a previously initiated run that has not yet completed.