Class Printer
Printing reports of testing into one XML file
Namespace: XSLTBenchmarking\Reports
Author: Viktor Mašíček <viktor@masicek.net>
Located at Reports/Printer.php
Author: Viktor Mašíček <viktor@masicek.net>
Located at Reports/Printer.php
public
|
#
__construct(
string
$reportsDir,
array
$processors
)
Setting common infromation for report
Setting common infromation for report Parameters
|
public
|
#
addReport(
XSLTBenchmarking\Reports\Report
$report
)
Add one report of one test into list of all reported tests
Add one report of one test into list of all reported tests Parameters
|
public
string
|
#
printAll(
)
Print all reports into one XML file and return path of the file
Print all reports into one XML file and return path of the file Template of XML output:
<reports>
<global>
<repeating>...</repeating>
<processors>
<processor name="..." [INFORMATION 1]="..." [INFORMATION 2]="..." />
<processor ... />
...
</processors>
</global>
<tests>
<test name="..." template="...">
<processor name="...">
<input
input="..."
expectedOutput="..."
output="..."
success="..."
correctness="..."
sumTime="..."
avgTime="..."
sumMemory="..."
avgMemory="..."
repeating="..."
/>
<input ... />
...
</processor>
<processor ...>
...
</processor>
...
</test>
<test ...>
...
</test>
...
</tests>
</reports>
Returnsstring |