object html extends HtmlRunner
runner creating html pages
- Alphabetic
- By Inheritance
- html
- HtmlRunner
- ClassRunner
- SystemExit
- ConsoleOutput
- Classes
- Output
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
apply(specifications: SpecificationStructure*)(implicit args: Arguments = Arguments()): Seq[ExecutedSpecification]
This method can be called directly from the console with the specs2.run object:
This method can be called directly from the console with the specs2.run object:
> specs2.run(spec1, spec2) or > import specs2._ > run(spec1, spec2)
If you want to pass specific arguments you can pass:
> import specs2.args._ > specs2.run(spec1)(nocolor)
Or you can set specific default with an implicit value:
> import specs2.args._ > implicit val myargs = nocolor > specs2.run(spec1)
- Definition Classes
- ClassRunner
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
create[T <: AnyRef](className: String = "", classLoader: ClassLoader = ...)(implicit m: ClassTag[T]): Either[Throwable, T]
- returns
an instance of a given class, returning either the instance, or an exception
- Definition Classes
- Classes
-
def
createObject[T <: AnyRef](className: String, printMessage: Boolean, printStackTrace: Boolean)(implicit m: ClassTag[T]): Option[T]
A system property 'debugCreateObject' can be set to override the printMessage and printStackTrace parameters so that the exception message and stacktrace are printed when the object can't be created
A system property 'debugCreateObject' can be set to override the printMessage and printStackTrace parameters so that the exception message and stacktrace are printed when the object can't be created
- returns
an instance of a given class and optionally print message and/or the stacktrace if the class can't be loaded.
- Definition Classes
- Classes
-
def
createObject[T <: AnyRef](className: String, printMessage: Boolean)(implicit m: ClassTag[T]): Option[T]
- returns
an instance of a given class and optionally print message if the class can't be loaded
- Definition Classes
- Classes
-
def
createObject[T <: AnyRef](className: String)(implicit m: ClassTag[T]): Option[T]
- returns
an instance of a given class
- Definition Classes
- Classes
-
def
createSpecification(className: String, classLoader: ClassLoader = ...)(implicit args: Arguments = Arguments()): SpecificationStructure
- Attributes
- protected
- Definition Classes
- ClassRunner
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
errorHandler: PartialFunction[Throwable, Unit]
- Attributes
- protected
- Definition Classes
- ClassRunner
-
def
exitSystem(executed: Seq[ExecutedSpecification]): Unit
exit the system with a specific code:
exit the system with a specific code:
- 0 if all the specifications are successful - 1 if there are only failures - 100 if there is any error - 101 if one of them could not even be executed (this is represented by None)
- Definition Classes
- SystemExit
-
def
exitSystem(executed: Option[ExecutedSpecification]): Unit
exit the system for one executed specification (None means that the specification could not be executed)
exit the system for one executed specification (None means that the specification could not be executed)
- Definition Classes
- SystemExit
-
def
exitTheSystem(executed: Seq[Option[ExecutedSpecification]]): Unit
- Attributes
- protected
- Definition Classes
- SystemExit
-
def
exitWith(status: Int): Unit
this method can be overriden for testing
this method can be overriden for testing
- Attributes
- protected
- Definition Classes
- SystemExit
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flush(): Unit
flush the content if necessary
flush the content if necessary
- Definition Classes
- ConsoleOutput → Output
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
main(arguments: Array[String]): Unit
- Definition Classes
- ClassRunner
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
print(m: Any): Unit
print an object with no newline
print an object with no newline
- Definition Classes
- Output
-
def
printStackTrace(t: Throwable): Unit
print stacktraces
print stacktraces
- Definition Classes
- Output
-
def
printf(s: String, args: Any*): Unit
print several objects according to a format string (see Console.printf)
print several objects according to a format string (see Console.printf)
- Definition Classes
- ConsoleOutput → Output
-
def
println(m: Any): Unit
print an object with a newline
print an object with a newline
- Definition Classes
- Output
-
lazy val
reporter: Reporter
- Definition Classes
- HtmlRunner → ClassRunner
-
def
start(arguments: String*): Option[ExecutedSpecification]
- Definition Classes
- ClassRunner
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryToCreateObject[T <: AnyRef](className: String, printMessage: Boolean = true, printStackTrace: Boolean = true, loader: ClassLoader = ..., parameter: Option[AnyRef] = None)(implicit m: ClassTag[T]): Option[T]
Try to create an instance of a given class by using whatever constructor is available and trying to instantiate the first parameter recursively if there is a parameter for that constructor.
Try to create an instance of a given class by using whatever constructor is available and trying to instantiate the first parameter recursively if there is a parameter for that constructor.
This is useful to instantiate nested classes which are referencing their outer class in their constructor
- Definition Classes
- Classes
-
def
tryToCreateObjectEither[T <: AnyRef](className: String, loader: ClassLoader = ..., parameter: Option[AnyRef] = None)(implicit m: ClassTag[T]): Either[Throwable, T]
Try to create an instance of a given class by using whatever constructor is available and trying to instantiate the first parameter recursively if there is a parameter for that constructor.
Try to create an instance of a given class by using whatever constructor is available and trying to instantiate the first parameter recursively if there is a parameter for that constructor.
This is useful to instantiate nested classes which are referencing their outer class in their constructor
- Definition Classes
- Classes
-
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
- @throws( ... )