reports/README
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 13 Feb 2017 12:00:51 +0100
branchjv
changeset 324 3bd7d9ad8b3f
parent 75 686f675d9442
child 332 a7d1a4a65b39
permissions -rw-r--r--
Workaround for (presumably) race in TestReport On SWING CI, sometimes when test times out, the whole test run crashes on DNU as `outcome` instvar is nil. This is maybe because of some race. As a quick and dirty workaround, create a new one if outcome is nil. Proper solution is to revise the code and figure out what's wrong, indeed. This is left as future work.

This package contains tools to generate various reports.
Currently, only SUnit test report is supported. Also, options to 
control what to do are quite limited. More will come...

To run a test suite for a package, execute following command:

../../../projects/smalltalk/stx -I --quick --noBanner -f test-runner.sh \
	-D <REPORTDIR> -r <REPORT> -p <PACKAGE> [-p <PACKAGE> [-p ... ]]

Where 
  <REPORTDIR>     is a directory where the report files are stored. 
                  Currently the name of the file is fixed, being
                  <PACKAGE>-<KIND>.xml. 
  <REPORT>        Report class name. Currently, only Builder::TestReport
                  is supported.
  <PACKAGE>       Smalltalk/X package name for which to generate the report.


Example: 

To run Smalltalk regression tests, issue following command:

../../../projects/smalltalk/stx -I --quick --noBanner  -f test-runner.st \
	-D /tmp -r Builder::TestReport -p exept:regression

When finished, you may find a report in file  /tmp/exept_regression-Test.xml