README revision 2727
135N/A
2727N/ACopyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
135N/A
135N/Atests/README
135N/A
135N/A 1. Summary
135N/A
135N/A The global test target, i.e. "make test", should be executed prior to
135N/A requesting code review and prior to integration. That target invokes
548N/A run.py in this directory.
548N/A
548N/A run.py drives the execution of our api and cli test suites, and
548N/A compares the results to a baseline file stored in baseline.txt.
548N/A
548N/A run.py can also be run standalone with a variety of options:
135N/A
548N/A Usage: run.py [-ghpv] [-b filename] [-o regexp]
548N/A -g Generate result baseline
548N/A -h This help message
548N/A -p Parseable output format
548N/A -v Verbose output
548N/A -b <filename> Baseline filename
548N/A -o <regexp> Run only tests that match regexp
1513N/A -c Collect code coverage data
548N/A
548N/A When adding, removing, or changing the results of test cases, make
548N/A sure to update baseline.txt and check it in. This can be done with the
548N/A -g option to run.py.
135N/A
1513N/A The code coverage collection is done with Ned Batchelder's "coverage.py"
1513N/A tool [1].
1513N/A
2727N/A 2. References
135N/A
1513N/A [1] N. Batchelder, coverage module, 2009.
1513N/A http://nedbatchelder.com/code/coverage/