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
- Protected
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val getDescription: Description
Get a JUnit
Descriptionfor this ScalaTestSuiteof tests.Get a JUnit
Descriptionfor this ScalaTestSuiteof tests.return a
Descriptionof 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
Suiteof tests, reporting results to the passedRunNotifier.Run this
Suiteof tests, reporting results to the passedRunNotifier. This class's implementation of this method invokesrunon an instance of thesuiteClassClasspassed to the primary constructor, passing in aReporterthat forwards to theRunNotifierpassed to this method asnotifier.- notifier
the JUnit
RunNotifierto 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
Suiteis run.Returns the number of tests that are expected to run when this ScalaTest
Suiteis 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()