The SpecsStats class just stores a list of stats, each one corresponding to a Fragment
The SpecsStats class just stores a list of stats, each one corresponding to a Fragment
The SpecsStatistics class stores the result of a specification execution, with the a list of 'current' stats for each fragment execution and the total statistics for the whole specification
The SpecsStatistics class stores the result of a specification execution, with the a list of 'current' stats for each fragment execution and the total statistics for the whole specification
add a toc to each HtmlFile where relevant
an Example which body comes from the execution of that example in a brand new instance of the Specification
copy css and images file to the output directory
copy css and images file to the output directory
map the executed fragments to HtmlLines and sort them by destination file, one file per specification
map the executed fragments to HtmlLines and sort them by destination file, one file per specification
a Tree of HtmlLinesFile where the root is the parent specification and children are the included specifications
execute sequences of Fragments.
execute sequences of Fragments.
If the stopOnFail argument is true, we check that the execution is ok before executing the next sequence.
execute a Fragment.
execute a Fragment.
A Form is executed separately by executing each row and cell, setting the results on each cell
This method could be overriden to provide alternate behavior when executing an Example
This method could be overriden to provide alternate behavior when executing an Example
execute a Fragment.
execute a Fragment.
a function exporting an ExecutingSpecification
filter fragments depending on the command line arguments and the current arguments in the specification
the filter method filters examples based on their description, keeping only the ones matching the ex attribute of the arguments object
the filter method filters examples based on their description, keeping only the ones matching the ex attribute of the arguments object
fragments according to their previous execution state
filter fragments according to tags by collecting tags as applicable to each fragment and applying them
flush the content if necessary
flush the content if necessary
This function "clones" the body of each example if the applicable arguments indicate that the specification should be isolated
This function "clones" the body of each example if the applicable arguments indicate that the specification should be isolated
a new HtmlReportOutput object creating html elements
print an object with no newline
print an object with no newline
print a sequence of executed fragments for a given specification class into a html file the name of the html file is the full class name
print a sequence of executed fragments for a given specification class into a html file the name of the html file is the full class name
a function printing html lines to a file given:
a function printing html lines to a file given:
- the list of lines to print - an output object responsible for printing each HtmlLine as xhtml
print stacktraces
print stacktraces
print several objects according to a format string (see Console.
print several objects according to a format string (see Console.printf)
print an object with a newline
print an object with a newline
Organize the fragments into blocks of html lines to print, grouping all the fragments found after a link into a single block that will be reported on a different html page
Organize the fragments into blocks of html lines to print, grouping all the fragments found after a link into a single block that will be reported on a different html page
This works by using a List of HtmlLines as a stack where the head of the list is the current block of lines
the HtmlLines to print
report Fragments by:
report Fragments by:
the reporter
the file path for the html output
select function returning a filtered seq of Fragments
select function returning a filtered seq of Fragments
select function returning a filtered seq of Fragments
select function returning a filtered seq of Fragments
sequence function returning an ordered seq of seq of Fragments
sequence function returning an ordered seq of seq of Fragments
the sequence method returns sequences of fragments which can be executed concurrently.
the sequence method returns sequences of fragments which can be executed concurrently. Among the constraints to respect, any Step Fragment must be executed before any following Example Fragment, so that "first" and "last" actions are executed properly in a Specification
If the arguments specify that the specification is sequential, then each fragment will be executed individually
set the statistics on SpecEndFragments after they've been computed by the StatisticsReducer Those statistics are updated from previously executed statistics to calculate trends
set the statistics on SpecEndFragments after they've been computed by the StatisticsReducer Those statistics are updated from previously executed statistics to calculate trends
Sort HtmlLines into a Tree of HtmlLinesFile object where the tree represents the tree of included specifications
Sort HtmlLines into a Tree of HtmlLinesFile object where the tree represents the tree of included specifications
The goal is to create a file per included specification and to use the Tree of files to create a table of contents for the root specification
a function storing ExecutedFragments
store the results by spec name
store the results by spec name
store the statistics: - for SpecEnd -> put the stats in the repository - for a SpecStart that's a link -> read the status of the previous execution
store the statistics: - for SpecEnd -> put the stats in the repository - for a SpecStart that's a link -> read the status of the previous execution
write the xml output to a Writer
write the xml output to a Writer
Reports a Specification as an Html page