org.specs2

runner

package runner

Visibility
  1. Public
  2. All

Type Members

  1. class ClassRunner extends Classes with ConsoleOutput with SystemExit

    This class can be used to executed a Specification in the Console by specifying its name as the first argument on the command line

    This class can be used to executed a Specification in the Console by specifying its name as the first argument on the command line

    See also

    org.specs2.main.Arguments for other command line options

    specs2.run

  2. trait FilesFingerprint extends TestFingerprint

  3. trait FilesRunner extends SpecificationsFinder with SystemExit

    This trait finds specifications in the source directory, instantiate them as one big specification and report them using the ConsoleReporter or the HtmlReporter depending on the presence of the html flag

    This trait finds specifications in the source directory, instantiate them as one big specification and report them using the ConsoleReporter or the HtmlReporter depending on the presence of the html flag

    See also

    org.specs2.main.Arguments for the regular expression defining the specification names to extract and other options

    org.specs2.io.FromSource for the definition of the source directory

  4. trait FilesRunnerFingerprint extends SubclassFingerprint

  5. case class FinalResultsReporter(handler: EventHandler, loggers: Array[Logger]) extends TestInterfaceReporter with Product with Serializable

    This reporter will just notify the test interface about test results for the end statistics

    This reporter will just notify the test interface about test results for the end statistics

    It is only used if we are not using the Console exporter

  6. class HtmlRunner extends ClassRunner

    This runner uses an HtmlReporter, creating html pages, for running the specification

    This runner uses an HtmlReporter, creating html pages, for running the specification

    See also

    org.specs2.main.Arguments for other command line options

    specs2.run

  7. class JUnitRunner extends Runner with Filterable with DefaultSelection

    The JUnitRunner class is a JUnit Runner class meant to be used with the RunWith annotation to execute a specification as a JUnit suite.

    The JUnitRunner class is a JUnit Runner class meant to be used with the RunWith annotation to execute a specification as a JUnit suite.

    The implementation is using a description Fold to fold the fragments into a tree of Description objects and a Map relating each Description to a Fragment to execute.

  8. class JUnitXmlRunner extends ClassRunner

    This runner uses a JUnitXmlReporter, creating junit xml files

    This runner uses a JUnitXmlReporter, creating junit xml files

    See also

    org.specs2.main.Arguments for other command line options

    specs2.run

  9. class MarkdownRunner extends ClassRunner

    This runner uses a MarkdownReporter, creating markdown pages, for running the specification

    This runner uses a MarkdownReporter, creating markdown pages, for running the specification

    See also

    org.specs2.main.Arguments for other command line options

    specs2.run

  10. case class NotifierRunner(notifier: Notifier) extends Product with Serializable

    This runner can be used with any class implementing the Notifier trait

  11. case class SbtRunner(args: Array[String], remoteArgs: Array[String], loader: ClassLoader) extends Runner with Events with SbtLoggers with Exporters with Product with Serializable

  12. trait SpecificationFingerprint extends SubclassFingerprint

  13. trait SpecificationsFinder extends FileSystem with Classes with ConsoleOutput with SourceFile

    This trait loads specifications found on a given source directory based on a regular expression representing the Specification name, usually .*Spec

  14. trait Specs2Fingerprint extends TestFingerprint

  15. class Specs2Framework extends Framework

    Implementation of the Framework interface for the sbt tool.

    Implementation of the Framework interface for the sbt tool. It declares the classes which can be executed by the specs2 library.

  16. class SpecsFramework extends Framework

    Implementation of the Framework interface for the sbt tool.

    Implementation of the Framework interface for the sbt tool. It declares the classes which can be executed by the specs2 library.

  17. trait SystemExit extends AnyRef

    This trait is responsible for exiting the system after a run, depending on the success of the execution

  18. class TestInterfaceConsoleReporter extends ConsoleReporter with AllExporting

  19. class TestInterfaceRunner extends Runner with HandlerEvents with TestLoggers with Exporters

    Runner for TestInterface.

    Runner for TestInterface. It creates a Specification class with the given classLoader the classes which can be executed by the specs2 library.

    Then it uses a NotifierRunner to notify the EventHandler of the test events.

  20. class TextRunner extends ClassRunner

Value Members

  1. object ClassRunner

  2. object ConsoleLogger extends Logger

  3. object Fingerprints

  4. object JUnitRunner

    Factory methods to help with testing

  5. object NoEventHandler extends EventHandler

  6. object NullEventHandler extends EventHandler

  7. object SpecificationsFinder extends SpecificationsFinder

  8. object TestInterfaceConsoleLogger extends Logger

  9. object TestInterfaceFingerprints

  10. object sbtRun extends SbtRunner with SystemExit with ConsoleOutput

    This object can be used to debug the behavior of the SbtRunner

  11. object testInterface extends TestInterfaceRunner with Classes with SystemExit with ConsoleOutput

    This object can be used to debug the behavior of the TestInterfaceRunner

  12. object textJUnitRunner

    Simple JUnitRunner to run specifications on the console for testing

Ungrouped