Python Tests for FESA3 Code Generation
To test the results of the python code generation in FESA3 a selection of python tests was created.
These tests concern the FESA FWK projects fesa-codegen/-gsi.
How to run the Tests
The tests require the Python modules unittest and xmlrunner. unittest is contained in Python 2.7 and xmlrunner is located in fesa-environment-gsi/tools/python . The PYTHONPATH environment variable must be set appropriately.
For each of the projects the Python script runTests.py must be launched. A directory for the test results in XML format is created during the tests (fesa-codegen/src/test/test-reports/, fesa-codegen-gsi/src/test/test-reports/).
The tests in fesa-codegen-gsi require a softlink pointing to the tests of fesa-codegen (../fesa-codegen/src/test/codegen_test) and to the codegen package itself (../fesa-codegen/src/py/codegen).
For running the Python tests a simple shell script was created. The script performs the necessary steps for running the Python tests. It is stored in the SVN repository:
https://www-acc.gsi.de/svn/fesa/framework/trunk/fesa-tools/scripts/runPythonCodegenTests.sh
The script runs best in a workspace containing the fesa-codegen projects.
"Automagic"
The Python tests for the code generation will be run "automagically" on GSI's build system Jenkins as soon as the code base in the SVN repository changed.
https://builder.acc.gsi.de/jenkins/job/fesa-codegen/
https://builder.acc.gsi.de/jenkins/job/fesa-codegen-gsi/
--
SolveighMatthies - 15 Sep 2016