diff --git a/cactus/cactus.dvsl b/cactus/cactus.dvsl deleted file mode 100644 index 4014bdf8..00000000 --- a/cactus/cactus.dvsl +++ /dev/null @@ -1,237 +0,0 @@ -####################################################################### -## J U N I T D V S L S T Y L E S H E E T ## -####################################################################### - -## This stylesheet is used to transform the output of JUnit's xml -## generator. The XML is transformed into a standard xdoc that can -## then be transformed (yet again) using whatever stylesheet is used -## to format one's site. -## -## Based on the XSL stylesheet junit-noframes.xsl from Ant. -## -## Version: $Id: cactus.dvsl,v 1.1 2003/01/24 03:44:37 jvanzyl Exp $ - -####################################################################### -## G L O B A L V A R I A B L E S ## -####################################################################### - -## Used to facilitate quoting in the template. -## -#set ($quote = '"') - -####################################################################### -## V E L O C I T Y M A C R O S ## -####################################################################### - -## Convert a string that represents a number using the specified -## pattern. -## -#macro (formatAsNumber $string $pattern) - #set ($value = $context.toolbox.numbers.parse($string)) - $context.toolbox.formatter.formatNumber($value, $pattern) -#end - -## Prints a standard navbar for navigation. -## -#macro (navbar) -
- [summary] - [package list] - [test cases] -
-#end - -## Prints a standard header for a test suite. -## -#macro (testSuiteHeader) -
- $context.toolbox.htmlescape.getText($current.value())
-
-#end
-
-## Generates the report if unit tests were present.
-##
-#macro (generateReport)
- #navbar ()
- - The following document contains the results of the Cactus tests. -
- - - ################################################################### -| Tests | -Errors | -Failures | -Success rate | -Time(s) | -
|---|---|---|---|---|
| #formatAsNumber ($testCount "0") | -#formatAsNumber ($errorCount "0") | -#formatAsNumber ($failureCount "0") | -#formatAsNumber ($successRate "0.00%") | -#formatAsNumber ($timeCount "0.000") | -
- Note: failures are anticipated and checked for with - assertions while errors are unanticipated. -
-| $package | -#formatAsNumber ($testCount "0") | -#formatAsNumber ($failureCount "0") | -#formatAsNumber ($errorCount "0") | -#formatAsNumber ($timeCount "0.000") | -
- Note: package statistics are not computed recursively, they only - sum up all of its testsuites numbers. -
- - #foreach ($testsuite in $node.selectNodes("./testsuite[not(./@package = preceding-sibling::testsuite/@package)]")) - #set ($package = "$testsuite.attribute('package')") - #set ($quotedPackage = "$quote$package$quote") -| $test.attribute('name') | -#formatAsNumber ($test.attribute('tests') "0") | -#formatAsNumber ($test.attribute('errors') "0") | -#formatAsNumber ($test.attribute('failures') "0") | -#formatAsNumber ($test.attribute('time') "0.000") | -
| #displayFailure ($error) | ||||||||
| $testcase.attribute("name") | - #if ($testcase.get("failure")) -Failure | -#displayFailure ($testcase.selectSingleNode("failure")) | - #elseif ($testcase.get("error")) -Error | -#displayFailure ($testcase.selectSingleNode("error")) | - #else -Success | -- #end - #if ($testcase.attribute("time")) - | #formatAsNumber ($testcase.attribute("time") "0.000") | - #else -- #end - |
- This project does not contain any unit tests. -
-