selftest is the test module for Narval.

It provides the actions and transformations necessary to run the
validation tests for the Narval kernel.


Running test
------------
1) python NARVAL_HOME/extensions/Selftest/autotest.py all

(give -h/--help option to have a full descritption of available
commands)
this will runs all tests and create and out.html file in the current
directory containing all the tests results.

2) python NARVAL_HOME/extensions/Selftest/autotest.py clean

this remove all the temporary files created will testing, include the
html results file.


Add a new test
--------------
1) add a memory file in the directory NARVAL_HOME/data/cases/ with a name
according to the following regular expression: "test-\d\d\d.xml" (where
\d mean a decimal digit). The memory must contain a <description>
element containing some text which describes the test purpose and an
<category> element which contains one of the following value: basic,
advanced, robustness. 
See others files in this directory for example.

2) add a validate file in the directory NARVAL_HOME/data/validate/
with a name according to the following regular expression:
"val-\d\d\d.xml" (where \d\d\d is the same number as above). This file
may include a single Python list containing xpath that should be
contained in memory  after the narval test execution. 
See others files in this directory for example.  


For more information, see http://www.logilab.org/

