Hello, I was working on lava-dispatcher today, and I found out that is has (few) unit tests under lava_dispatchers/tests/, and I was wondering if is there a pattern/guideline/etc on how unit tests are used acrosss the lava components. In special:
1) How are we supposed to run the unit tests? I found a .testr.conf file in lava-dispatcher, what gave me some hints, so I started doing $ python -m subunit.run lava_dispatcher.tests.test_suite The output of that was too verbose for my taste, so I ended up using $ python -m unittest lava_dispatcher.tests.test_suite which provides a cleaner output. 2) I had problems running these tests within the system (a VM) where I had lava installed, after activating the virtualenv-like environment with `. /src/lava/instances/$inst/bin/activate`. The commands above were always running the code that was installed in the lava instance instead of the code in the current directory. I guess that is related to the fact that I did not inject that directory to be used by the instance, right? This made me end up running the tests on my main system, where there was nothing installed - only the lava-dispatcher sources + the basic Python stuff. -- Antonio Terceiro Software Engineer - Linaro http://www.linaro.org
signature.asc
Description: Digital signature
_______________________________________________ linaro-validation mailing list [email protected] http://lists.linaro.org/mailman/listinfo/linaro-validation
