| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait Xml
extends
FileSystem with ConsoleLog with Console
XmlRunner trait is used to create an xml file, in a specified output directory
with the results of a specification execution.
If the output directory is not specified object runner extends XmlRunner(mySpec)then the current directory will be used Usage:
class mySpecRunner extends Runner(mySpec) with Xml
The output directory can be overriden if necessary:
class mySpecRunner extends Runner(mySpec) with Xml { override def outputDir = "./results/specs" }
| 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 the main method if called from the code directly
|
Array[String] | Console |
| fileName |
def fileName
the default name of the file is the specification name
|
String | |
| filePath |
def filePath
the default path is the output dir + specification name +
[details]
xml
|
String | |
| level |
var level
|
Int | Log |
| outputDir |
def outputDir
[details]
|
String | |
| outputDirPath |
protected var outputDirPath
private variable storing the output directory path
|
String | |
| spec |
def spec
[details]
|
Specification | |
| specs |
abstract val specs
|
Seq[Specification] | SpecsHolder |
| timer |
val timer
this timer uses java Calendar to compute hours, minutes, seconds and milliseconds
|
SimpleTimer | ConsoleReporter |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| asList |
implicit def asList[T](v : Vector[T])
[details]
|
List[T] | JavaConversions |
| asXml |
def asXml(error : Throwable)
[details]
|
Elem | |
| asXml |
def asXml(sut : Sut)
[details]
|
Elem | |
| asXml |
def asXml(skipped : SkippedException)
[details]
|
Elem | |
| asXml |
def asXml(e : Example)
[details]
|
Elem | |
| asXml |
def asXml(s : Specification)
[details]
|
Elem | |
| asXml |
def asXml(failure : FailureException)
[details]
|
Elem | |
| canRead |
def canRead(path : String)
[details]
|
Boolean | FileSystem |
| canWrite |
def canWrite(path : String)
[details]
|
Boolean | FileSystem |
| clone |
protected def clone
|
Object | AnyRef |
| createDir |
def createDir(path : String)
creates a directory for a given path
|
Boolean | FileSystem |
| createFile |
def createFile(path : String)
creates a file for a given path
[details]
Create the parent directory if necessary
|
Boolean | FileSystem |
| debug |
def debug(msg : String)
prints the message if the log level is Debug
|
Unit | Log |
| enumerationToList |
implicit def enumerationToList[T](e : Enumeration[T])
[details]
|
List[T] | JavaConversions |
| 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 |
| exists |
def exists(path : String)
[details]
|
Boolean | FileSystem |
| filePaths |
def filePaths(path : String)
[details]
|
List[String] | FileSystem |
| finalize |
protected def finalize
|
Unit | AnyRef |
| flush |
def flush
flushes the content if necessary
|
Unit | ConsoleOutput |
| getAbsolutePath |
def getAbsolutePath(path : String)
[details]
|
String | FileSystem |
| getCanonicalPath |
def getCanonicalPath(path : String)
[details]
|
String | FileSystem |
| getClass |
final def getClass
|
Class[Object] | AnyRef |
| getName |
def getName(path : String)
[details]
|
String | FileSystem |
| getParent |
def getParent(path : String)
[details]
|
String | FileSystem |
| getWriter |
def getWriter(path : String)
The getWriter function can be overriden to provide a mock writer writing to the console for example
[details]
|
Writer | FileWriter |
| globToPattern |
def globToPattern(glob : String)
[details]
|
String | FileSystem |
| hashCode |
def hashCode
|
Int | AnyRef |
| info |
def info(msg : String)
prints the message if the log level is <= Info
|
Unit | Log |
| isAbsolute |
def isAbsolute(path : String)
[details]
|
Boolean | FileSystem |
| isDir |
def isDir(path : String)
[details]
|
Boolean | FileSystem |
| isDirectory |
def isDirectory(path : String)
[details]
|
Boolean | FileSystem |
| isFile |
def isFile(path : String)
[details]
|
Boolean | FileSystem |
| isHidden |
def isHidden(path : String)
[details]
|
Boolean | FileSystem |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| javaArrayToList |
implicit def javaArrayToList[T](array : Array[T])
[details]
|
List[T] | JavaConversions |
| listFiles |
def listFiles(path : String)
[details]
|
List[String] | FileSystem |
| main |
def main(arguments : Array[String])
|
Unit | Console |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| normalize |
def normalize(dir : String)
[details]
|
String | |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| outputDir_= |
def outputDir_=(path : String)
set the output directory path
|
Unit | |
| printStackTrace |
def printStackTrace(t : Throwable)
prints stacktraces
|
Unit | Output |
| printStats |
def printStats(sut : Sut, padding : String)
prints the statistics for a sut
|
Unit | OutputReporter |
| printStats |
def printStats(stat : (Int, Int, Int, Int, Int), padding : String)
prints the statistics for a specification
|
Unit | OutputReporter |
| printSut |
def printSut(sut : Sut, padding : String)
prints one sut 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 |
| readFile |
def readFile(path : String)
reads the content of a file
[details]
|
String | FileReader |
| removeDir |
def removeDir(path : String)
deletes the directory and all directory contents at the specified path and return the parent path of that directory
|
String | FileSystem |
| report |
def report(specs : Iterable[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
|
Unit | OutputReporter |
| report |
def report(specs : Iterable[Specification])
reports a list of specifications
|
Unit | 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
|
Unit | OutputReporter |
| reportSpec |
def reportSpec(spec : Specification)
reports a specification with no padding
|
Unit | OutputReporter |
| reportSpec |
def reportSpec
creates the file and write the xml result of the specification execution
|
Unit | |
| reportSpecs |
override def reportSpecs
|
Unit | |
| reportSut |
def reportSut(sut : Sut, padding : String)
reports one sut results: print the sut specifications, then the statistics
|
Unit | OutputReporter |
| reportSuts |
def reportSuts(suts : Iterable[Sut], padding : String)
reports the sut results
[details]
If there are more than one, then report stats for each
else just print the specification of the sut, the parent specification will display the total
for that sut
|
Unit | OutputReporter |
| setNoStacktrace |
def setNoStacktrace
|
Unit | 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 |
| stats |
def stats(sut : Sut)
[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 |
| write |
def write(path : String)(function : (Writer) => Unit)
writes some content to a file and take care of closing the file
[details]
Usage:
write("./dir/hello.txt") { out =>
out.write("content")
}
|
Unit | FileWriter |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |