ScalaTest 1.0
|
|
org/scalatest/junit/JUnitRunner.scala
]
final
class
JUnitRunner(suiteClass : java.lang.Class[Suite])
extends
org.junit.runner.Runner with
AnyRefRunner
that knows how to run any ScalaTest Suite
(or Spec
, which extends Suite
).
This enables you to provide a JUnit RunWith
annotation on any
ScalaTest Suite
. Here's an example:
import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.FunSuite @RunWith(classOf[JUnitRunner]) class MySuite extends FunSuite { // ... }
This RunWith
annotation will enable the MySuite
class
to be run by JUnit 4.
Value Summary | |
val
|
getDescription
: org.junit.runner.Description
Get a JUnit
Description for this ScalaTest Suite of tests.
return a Description of this suite of tests |
Method Summary | |
def
|
run
(notifier : org.junit.runner.notification.RunNotifier) : Unit
Run this
Suite of tests, reporting results to the passed RunNotifier .
This class's implementation of this method invokes run on an instance of the
suiteClass Class passed to the primary constructor, passing
in a Reporter that forwards to the RunNotifier passed to this
method as notifier . |
override def
|
testCount
: Int
Returns the number of tests that are expected to run when this ScalaTest
Suite
is run. |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
val
getDescription : org.junit.runner.Description
Description
for this ScalaTest Suite
of tests.
return a Description
of this suite of testsMethod Details |
def
run(notifier : org.junit.runner.notification.RunNotifier) : Unit
Suite
of tests, reporting results to the passed RunNotifier
.
This class's implementation of this method invokes run
on an instance of the
suiteClass
Class
passed to the primary constructor, passing
in a Reporter
that forwards to the RunNotifier
passed to this
method as notifier
.notifier -
the JUnit RunNotifier
to which to report the results of executing this suite of testsoverride
def
testCount : Int
Suite
is run.
ScalaTest 1.0
|
|