Commit 32d7bcae by 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
1 parent de1dda0e
Showing 1 changed file with 18 additions and 0 deletions
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.
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!