Commit 32d7bcae authored by Olivier Cros's avatar Olivier Cros

Neo test coverage documentation

We add this doc file to explain how to check the progressing of neo
test suite(unit tests) and to know how to control which neo parts
had been tested and which had not.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2660 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent de1dda0e
In order to check the test-coverage of Neo, we used the figleaf tool. The usage
(for a complete neo test suite) is :
Download and install figleaf : http://darcs.idyll.org/~t/projects/figleaf/doc/
$ figleaf neotestrunner -u (it will generate a .figleaf file)
$figleaf2html .figleaf (to convert .figleaf file in html pages)
$firefox html/ (to read the results)
Each one of the page contains Neo code, which the following colours :
Green : Executed code during test suite
Red : Unexecuted code
Black : Comments and "unused" lines
In order to check only needed neo file, you should specify the following options:
figleaf -i : ignore python libraries
figleaf2html -f : allows to specify a list of check-needed files
For stats, you can also check the index.html page, which indicated which
percentage of test-coverage.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment