I am using scons to build a large project containing a mix of C++ and Python. I would like scons to run Python unit tests either using nose or not. Currently, we have a long list of tests files and run a test builder on each one. This causes each test file to be run as a separate script which feel inelegant and inefficient.
Is there a better way of doing this?
Best Answer
In the end, I created a custom builder which called an external test runner. Just save the following to
site_scons/site_tools/run_py_test.py
, import it in the main SConstruct file, and use it as you would any other builder.If you are going to down vote, at least leave a comment as to why this is a bad answer so it can be improved!!!