| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait TeamCityReporter
extends
OutputReporter with TeamCityOutput
| 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 |
override val timer
the timer is used to display execution times
|
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 |
| message |
def message(messageType : String, args : (String, String)*)
create a message with several arguments
[details]
They should be outputed as ##teamcity[testFailed message='1 is not equal to 2']
|
Unit | TeamCityOutput |
| message |
def message(messageType : String, arg : String)
create a message with one argument
|
Unit | TeamCityOutput |
| 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(sus : Sus, padding : String)
prints the statistics for a sus
|
Unit | OutputReporter |
| printStats |
def printStats(stat : (Int, Int, Int, Int, Int), padding : String)
prints the statistics for a specification
|
Unit | OutputReporter |
| printSus |
override def printSus(sus : Sus, padding : String)
print a Sus on the TeamCity output (this method is directly called
if there is only sus in the specification)
|
Unit | |
| 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 |
override def reportExample(example : Example, padding : String)
Report one example on the TeamCity output
[details]
The subexample messages are aggregated as one TeamCity message.
In the TeamCity web interface, only the "details" field is shown.
Exceptions stacktraces are mapped onto it.
|
Unit | |
| reportExamples |
def reportExamples(examples : Iterable[Example], padding : String)
reports a list of examples and indent subexamples if there are some
|
Unit | OutputReporter |
| reportSpec |
override def reportSpec(spec : Specification, padding : String)
report a specification, on the TeamCity output
|
TeamCityReporter | |
| reportSus |
override def reportSus(sus : Sus, padding : String)
report a Sus on the TeamCity output ()
|
Unit | |
| 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(spec : Specification)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| stats |
def stats(example : Example)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| stats |
def stats(sus : Sus)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| testFailed |
def testFailed(name : String, args : (String, String)*)
create a message for a failed test (failure or error)
|
Unit | TeamCityOutput |
| testFinished |
def testFinished(name : String)
create a message for the end of a test
|
Unit | TeamCityOutput |
| testIgnored |
def testIgnored(name : String, args : (String, String)*)
create a message for an ignored test
|
Unit | TeamCityOutput |
| testStarted |
def testStarted(name : String)
create a message for the start of a test
|
Unit | TeamCityOutput |
| testSuiteFinished |
def testSuiteFinished(name : String)
create a message for the end of a test suite
|
Unit | TeamCityOutput |
| testSuiteStarted |
def testSuiteStarted(name : String)
create a message for the start of a test suite
|
Unit | TeamCityOutput |
| 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 |