tox - installed via "pip install tox" is our standard tool for running tests and coverage maps.
Nearly all the repo's have a tox,ini
To run a tox command, follow the previous steps, then run:
tox -elocal
And this will build and run the tests.So, you've installed Validation, picked up a JIRA ticket, created a unit test and fixed a bit of code. What do you do next?
We use tox as our standard testing tool. Invoke your virtual environment and run
pip install tox
then
tox -elocal
These commands will set up a clean environment under .tox and will run the tests.
The tests come up fine, what next? Time to commit that code!
git add .
git commit -m 'RR-999 Some random reason'
git push
Once the change has been pushed to the repository, this will trigger a build on the Bamboo system, which produces a windows exe for further testing and is available here:
\\rr-bamboo.northbristol.local\Registry_Test_Utils\Validation