final class JUnitRunner extends Runner
A JUnit Runner
that knows how to run any ScalaTest 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.
- Source
- JUnitRunner.scala
- Alphabetic
- By Inheritance
- JUnitRunner
- Runner
- Describable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
getDescription: Description
Get a JUnit
Description
for this ScalaTestSuite
of tests.Get a JUnit
Description
for this ScalaTestSuite
of tests.return a
Description
of this suite of tests -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
run(notifier: RunNotifier): Unit
Run this
Suite
of tests, reporting results to the passedRunNotifier
.Run this
Suite
of tests, reporting results to the passedRunNotifier
. This class's implementation of this method invokesrun
on an instance of thesuiteClass
Class
passed to the primary constructor, passing in aReporter
that forwards to theRunNotifier
passed to this method asnotifier
.- notifier
the JUnit
RunNotifier
to which to report the results of executing this suite of tests
- Definition Classes
- JUnitRunner → Runner
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
testCount(): Int
Returns the number of tests that are expected to run when this ScalaTest
Suite
is run.Returns the number of tests that are expected to run when this ScalaTest
Suite
is run.- returns
the expected number of tests that will run when this suite is run
- Definition Classes
- JUnitRunner → Runner
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )