| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait Console
extends
OutputReporter with ConsoleOutput
OutputReporter with a ConsoleOutput
and a SimpleTimer
| Debug |
val Debug
|
Int | Log |
| Error |
val Error
|
Int | Log |
| Info |
val Info
|
Int | Log |
| Warning |
val Warning
|
Int | Log |
| args |
var args
optional arguments to be used in the main method and which can be set from the code directly
|
Array[String] | Reporter |
| failedAndErrorsOnly |
protected var failedAndErrorsOnly
this variable controls if ok examples should be printed
|
Boolean | Reporter |
| level |
var level
|
Int | Log |
| reportSpecs |
def reportSpecs
report the list of specifications held by the object mixing this trait
|
Reporter | Reporter |
| specs |
abstract val specs
|
Seq[Specification] | SpecsHolder |
| stacktrace |
protected var stacktrace
this variable controls if stacktraces should be printed
|
Boolean | Reporter |
| timer |
val timer
this timer uses java Calendar to compute hours, minutes, seconds and milliseconds
|
SimpleTimer |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| :: |
def ::(r : Reporter)
|
List[Reporter] | Reporter |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| clone |
protected def clone
|
Object | AnyRef |
| debug |
def debug(msg : => String)
prints the message if the log level is Debug
|
Unit | Log |
| eq |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| error |
def error(msg : => String)
prints the message if the log level is <= Error
|
Unit | Log |
| finalize |
protected def finalize
|
Unit | AnyRef |
| flush |
override def flush
flushes the content if necessary
|
Unit | ConsoleOutput |
| getClass |
final def getClass
|
Class[Object] | AnyRef |
| hashCode |
def hashCode
|
Int | AnyRef |
| info |
def info(msg : => String)
prints the message if the log level is <= Info
|
Unit | Log |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| main |
def main(arguments : Array[String])
Main method for the Reporter trait
[details]
It first agregates all arguments: passed to the class and passed from the command line.
Then it calls the reportSpecs method and exit the System with the appropriate error code,
depending on the specification success or not.
|
Unit | Reporter |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| printStackTrace |
def printStackTrace(t : Throwable)
prints stacktraces
|
Unit | Output |
| printStats |
def printStats(stat : (Int, Int, Int, Int, Int), padding : String)
prints the statistics for a specification
|
Unit | OutputReporter |
| printStats |
def printStats(sus : Sus, padding : String)
prints the statistics for a sus
|
Unit | OutputReporter |
| printSus |
def printSus(sus : Sus, padding : String)
prints one sus specification
|
Unit | OutputReporter |
| printf |
def printf(format : String, args : Any*)
prints several objects according to a format string (see Console
[details]
printf)
|
Unit | ConsoleOutput |
| println |
def println(m : Any)
prints an object with a newline
|
Unit | ConsoleOutput |
| report |
def report(specs : Seq[Specification], padding : String)
reports a list of specifications with a given space separator to display before the results
[details]
This method may be called recursively by the reportSpec method if a specification
has subSpecifications, hence the padding will be incremented
|
OutputReporter | OutputReporter |
| report |
override def report(specs : Seq[Specification])
override the parent method for arguments setting and
call the local report method with no padding to being with
|
OutputReporter | OutputReporter |
| reportExample |
def reportExample(example : Example, padding : String)
reports one example: + if it succeeds, x if it fails, its description, its failures or errors
|
Unit | OutputReporter |
| reportExamples |
def reportExamples(examples : Iterable[Example], padding : String)
reports a list of examples and indent subexamples if there are some
|
Unit | OutputReporter |
| reportSpec |
def reportSpec(spec : Specification, padding : String)
reports a specification with a given space separator to display before the results
[details]
This method may be called recursively by the reportSpec method if a specification
has subSpecifications, hence the padding will be incremented
|
OutputReporter | OutputReporter |
| reportSus |
def reportSus(sus : Sus, padding : String)
reports one sus results: print the sus specifications, then the statistics
|
Unit | OutputReporter |
| reportSystems |
def reportSystems(systems : Iterable[Sus], padding : String)
reports the sus results
[details]
If there are more than one, then report stats for each
else just print the specification of the sus, the parent specification will display the total
for that sus
|
Unit | OutputReporter |
| resetOptions |
def resetOptions
reset all options
|
Reporter | Reporter |
| setFailedAndErrorsOnly |
def setFailedAndErrorsOnly
allow subclasses to remove the ok and skipped examples
|
Reporter | Reporter |
| setNoStacktrace |
def setNoStacktrace
allow subclasses to remove the stacktrace display
|
Reporter | Reporter |
| stats |
def stats(sus : Sus)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| stats |
def stats(example : Example)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| stats |
def stats(spec : Specification)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toAddableTuple |
implicit def toAddableTuple(t1 : (Int, Int, Int, Int, Int))
utility implicit definition to be able to add tuples
|
AddableTuple | OutputReporter |
| toString |
def toString
|
String | AnyRef |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait |
final def wait
|
Unit | AnyRef |
| warning |
def warning(msg : => String)
prints the message if the log level is <= Warning
|
Unit | Log |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |