| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait Html
extends
File
| 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 |
| descriptionFormatter |
val descriptionFormatter
|
DescriptionFormatter | |
| failedAndErrorsOnly |
protected var failedAndErrorsOnly
this variable controls if ok examples should be printed
|
Boolean | Reporter |
| javaScript |
def javaScript
|
Elem | |
| level |
var level
|
Int | Log |
| outputDir |
override def outputDir
definition of the output directory of the report
|
String | |
| 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 | Console |
| upArrow |
def upArrow
create an up arrow with an anchor ref to the top
|
Elem |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| :: |
def ::(r : Reporter)
|
List[Reporter] | Reporter |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| anchorName |
def anchorName(name : String)
creates an anchor name, sanitizing the name
|
Elem | |
| anchorRef |
def anchorRef(name : String)
creates an anchor reference for a given name,
possibly shortening it for the left column display, but leaving the full name
as a tooltip
|
Elem | |
| asHtml |
def asHtml(spec : Specification)
Create the html content for this specification execution
[details]
The html page is composed of a left column with a table summarizing the status for all systems
and a right (larger) column with a table containing all examples.
|
Elem | |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| canRead |
def canRead(path : String)
[details]
|
Boolean | FileSystem |
| canWrite |
def canWrite(path : String)
[details]
|
Boolean | FileSystem |
| clone |
protected def clone
|
Object | AnyRef |
| copy |
def copy(input : InputStream, output : OutputStream)
Copy an input stream to an output stream
[details]
|
Unit | FileSystem |
| copyDir |
def copyDir(url : URL, dest : String, tagged : Tagged)
copy the content of a directory to another
[details]
|
Unit | FileSystem |
| copyDir |
def copyDir(src : String, dest : String, tagged : Tagged)
copy the content of a directory to another
[details]
|
Unit | FileSystem |
| copyDir |
def copyDir(url : URL, dest : String)
copy the content of a directory to another
[details]
|
Unit | FileSystem |
| copyDir |
def copyDir(src : String, dest : String)
copy the content of a directory to another
[details]
|
Unit | FileSystem |
| copyFile |
def copyFile(path : String, dest : String)
Copy the content of a directory to another
[details]
|
Unit | FileSystem |
| copySpecResourcesDir |
def copySpecResourcesDir(src : String, outputDir : String)
Copy specs resources found either in the specs jar or in the classpath directories to an output directory
[details]
Current limitations!! This only works if the jar holding the resources contains the word "specs".
|
Unit | FileSystem |
| 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.
|
Unit | FileWriter |
| 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 |
| example |
def example(example : Example, alternation : Boolean, fullSuccess : Boolean)
create a row for an example and its subexamples
[details]
If the example has subexamples, a small header is created.
|
Seq[Node] | |
| exampleRow |
def exampleRow(example : Example, alternation : Boolean, fullSuccess : Boolean)
create a row for an example with its status, description and message
|
Elem | |
| exampleRows |
def exampleRows(examples : Iterable[Example], fullSuccess : Boolean)
create rows for each example, alternating style
|
NodeSeq | |
| examplesTable |
def examplesTable(sus : Sus)
|
Seq[Node] | |
| exceptionText |
def exceptionText(e : Throwable)
|
Elem | |
| exists |
def exists(path : String)
[details]
|
Boolean | FileSystem |
| failure |
def failure(f : FailureException)
the failure message for an example is displayed differently depending on its nature
[details]
Failures for DataTables will be reported in a nested table.
|
NodeSeq | |
| fileName |
override def fileName(spec : Specification)
definition of the file name of a specification
|
String | |
| filePath |
def filePath(spec : Specification)
the default path is the output dir + file name
|
String | File |
| filePaths |
def filePaths(path : String)
[details]
|
List[String] | FileSystem |
| finalize |
protected def finalize
|
Unit | AnyRef |
| flush |
override def flush
flushes the content if necessary
|
Unit | ConsoleOutput |
| formattedDesc |
def formattedDesc(ex : Example)
|
Node | |
| formattedDescription |
def formattedDescription(sus : Sus)
return a formatted string depending on the type of literate description: text, wiki or html
|
Option[Node] | |
| 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 |
| getResourcesNamed |
def getResourcesNamed(name : String)
Return urls of the resources containing the name "name" from this ClassLoader and the System classLoader
[details]
|
List[URL] | 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 |
| head |
def head(specification : Specification)
head declaration for the specification
[details]
The title of the document is the specification name.
|
Elem | |
| image |
def image(result : HasResults)
|
String | |
| 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 |
| listFiles |
def listFiles(path : String)
[details]
|
List[String] | FileSystem |
| literateDesc |
def literateDesc(sus : Sus)
|
NodeSeq | |
| 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(example : Example, fullSuccess : Boolean)
Message for an example
|
NodeSeq | |
| mkdirs |
def mkdirs(path : String)
creates a new directory
|
Boolean | FileWriter |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| nonTrivialSpec |
def nonTrivialSpec(specification : Specification)
|
Boolean | |
| normalize |
def normalize(dir : String)
[details]
|
String | File |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| onLoadFunction |
def onLoadFunction(specification : Specification)
reduce a list with a function returning a NodeSeq
|
String | |
| 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 |
| 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 : 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(specifications : Seq[Specification])
report the specification hold by this runner
|
Html | |
| 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 |
| sanitize |
def sanitize(s : String)
sanitize a string so that it can be used as a href
|
String | |
| 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 |
| shorten |
def shorten(s : String)
shorten a string to 30 characters maximum
|
String | |
| specOutput |
def specOutput(spec : Specification)
define the html content for this specification execution
|
String | |
| specificationTable |
def specificationTable(spec : Specification)
create a table for one specification
|
Seq[Node] | |
| stackTrace |
def stackTrace(e : Throwable)
|
String | |
| stats |
def stats(sus : Sus)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| stats |
def stats(spec : Specification)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| stats |
def stats(example : Example)
[details]
|
(Int, Int, Int, Int, Int) | OutputReporter |
| statusIcon |
def statusIcon(result : HasResults)
status icon for anything having results (errors, failures, skipped)
|
Elem | |
| subspecsTables |
def subspecsTables(subSpecs : List[Specification])
create tables for all the subspecifications
|
NodeSeq | |
| summarySpec |
def summarySpec(spec : Specification)
returns the title of the specification spanning 2 columns for the summary table
|
NodeSeq | |
| summarySus |
def summarySus(sus : Sus, spec : Specification)
creates a summary row for a sus
|
NodeSeq | |
| summaryTable |
def summaryTable(specification : Specification)
returns a table with the name of all systems, with their status,
possibly shortened if the system's description is too long
|
Elem | |
| susHeader |
def susHeader(sus : Sus)
return the sus header if not empty or an Empty Node
|
Seq[Node] | |
| susName |
def susName(sus : Sus, spec : Specification)
return the sus header if it is not empty, otherwise return the spec name
|
String | |
| susTable |
def susTable(sus : Sus, spec : Specification)
create a table for a system
|
NodeSeq | |
| susTables |
def susTables(spec : Specification)
create tables for systems
|
NodeSeq | |
| 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 |
| unjar |
def unjar(path : String, dest : String)
Unjar the jar (or zip file) specified by "path" to the "dest" directory
[details]
|
Unit | FileSystem |
| unjar |
def unjar(path : String, dirPath : String, regexFilter : String)
Unjar the jar (or zip file) specified by "path" to the "dest" directory
[details]
Filters files which shouldn't be extracted with a regular expression.
|
Unit | FileSystem |
| wait |
final def wait
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
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 |
| writeFile |
def writeFile(path : String, content : => String)
writes some content to a file
[details]
|
Unit | FileWriter |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |