diff -r f1615c79971d Makefile.am --- a/Makefile.am Tue May 17 16:43:45 2011 +0200 +++ b/Makefile.am Wed May 18 10:58:42 2011 +0200 @@ -6,6 +6,8 @@ NETX_EXTRA_DIR=$(abs_top_srcdir)/extra/net/sourceforge/javaws/about/resources NETX_EXTRA_DIST_DIR=$(abs_top_builddir)/extra-lib/net/sourceforge/javaws/about/resources +REPORT_STYLES_DIRNAME=report-styles + TESTS_SRCDIR=$(abs_top_srcdir)/tests TESTS_DIR=$(abs_top_builddir)/tests.build @@ -460,8 +462,13 @@ mkdir -p stamps && \ touch $@ +$(TESTS_DIR)/$(REPORT_STYLES_DIRNAME): + mkdir $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME) + cp $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/*.css $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME)/ + cp $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/*.js $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME)/ + run-netx-unit-tests: stamps/netx-unit-tests-compile.stamp \ - $(JUNIT_RUNNER_JAR) + $(JUNIT_RUNNER_JAR) $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME) cp {$(NETX_UNIT_TEST_SRCDIR),$(NETX_UNIT_TEST_DIR)}/net/sourceforge/jnlp/basic.jnlp cd $(NETX_UNIT_TEST_DIR) ; \ class_names= ; \ @@ -476,6 +483,7 @@ > stdout.log 2> stderr.log ; \ cat stdout.log ; \ cat stderr.log >&2 + -xsltproc $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/jreport.xsl $(TESTS_DIR)/netx/unit/tests-output.xml > $(TESTS_DIR)/index_unit.html clean-netx-tests: clean-netx-unit-tests clean-junit-runner if [ -e $(TESTS_DIR)/netx ]; then \ @@ -487,11 +495,15 @@ rm -rf $(JUNIT_RUNNER_DIR) rm -f $(JUNIT_RUNNER_JAR) -clean-netx-unit-tests: +clean-netx-unit-tests: clean_tests_reports rm -f netx-unit-tests-source-files.txt rm -rf $(NETX_UNIT_TEST_DIR) rm -f stamps/netx-unit-tests-compile.stamp +clean_tests_reports: + rm -rf $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME)/ + rm -f $(TESTS_DIR)/index*.html + # plugin tests if ENABLE_PLUGIN diff -r f1615c79971d tests/report-styles/index.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/report-styles/index.js Wed May 18 10:58:42 2011 +0200 @@ -0,0 +1,20 @@ + +function negateIdDisplay(which){ + var e = document.getElementById(which); + if (e.style.display=="block") { + e.style.display="none" + }else{ + e.style.display="block" + } + } + + + function setClassDisplay(which,what) { + var e = document.getElementsByClassName(which); + for ( var i = 0; i < e.length; i++ ){ + e[i].style.display=what + } + } + + + diff -r f1615c79971d tests/report-styles/jreport.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/report-styles/jreport.xsl Wed May 18 10:58:42 2011 +0200 @@ -0,0 +1,229 @@ + + + + + + + + + + + + + +
+

Date:

+ +
+

Result: (s)

+
+
+
TOTAL:
+
+ +
+
+
+
+
passed:
+
+ +
+
+
+
+
failed:
+
+ +
+
+
+
+
ignored:
+
+ +
+
+
+
+

Classes:

+ +
+ + + + passed + + + failed + + + + + # + +(ms): + +
+
+
+
+
TOTAL:
+
+ +
+
+
+
+
passed:
+
+ +
+
+
+
+
failed:
+
+ +
+
+
+
+
ignored:
+
+ +
+
+
+
+
+
+
+ + +

Individual results:

+ + + +
+ + + + failed + + + passed + + + + + + + + +
+
+ +
+ - +
+ +
+
+
+ + +
+ PASSED (s) +
+
+ +
+ FAILED (s) +
+
+
+ - + + +
+
+
+                    
+                  
+
+
+
+
+
+
+
+
+
+
+ +
+
+ STD-OUT - +
+
+
+                
+              
+
+
+
+
+
+ STD-ERR - +
+
+
+                
+              
+
+
+
+ +
+ + +
+
diff -r f1615c79971d tests/report-styles/report.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/report-styles/report.css Wed May 18 10:58:42 2011 +0200 @@ -0,0 +1,21 @@ +div.passed {background-color:green;height:auto } +div.failed {background-color:red ;height:auto} +div.ignored {background-color:yellow ;height:auto} + +div.clazz {display:inline } +div.method {display:inline } + +div.result {display:block; border: thin solid black ;height:auto} +div.status {display:inline; } +div.wtrace {display:inline; border: thin solid black; float: right;height:auto} +div.theader {display:block; border: thin solid black} +div.trace {display:block; border: thin solid black} + +div.space-line { clear: both; margin: 0; padding: 0; width: auto;} + +div.tablee {width:200px; border: thin solid black; } +div.row { border: thin solid black; } +div.cell1 {display:inline; float: left;height:auto} +div.cell2 {display:inline; float: right;height:auto} + +a.classSumaryName{font-weight:bold}