L2SS-259: Integrate unit tests using Continuous Integration (CI)
Tox is used to create virtual environments that can install Python dependencies and run tasks. These include linting and unit tests.
Tox uses stestr to run unit tests which runs all the tests concurrently.
This uses pbr for setup.py which automatically extracts features and entrypoints out of setup.cfg otherwise you would have to type this by hand. Together pbr and setup.cfg can also automatically tag the version of the package. For now I have left the lofar_git code in place, however.
For the documentation on Unit testing and support frameworks see: https://git.astron.nl/lofar2.0/tango/-/blob/L2SS-259-ci-unit-tests/devices/test/README.md
Closes L2SS-259
Merge request reports
Activity
Perhaps if we merge this we should also close: #L2SS-207
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
- Resolved by Corné Lukken
added 1 commit
added 1 commit
- Resolved by Corné Lukken
added 1 commit
added 1 commit
added 1 commit
added 123 commits
-
39b27b61...fd91d0e8 - 89 commits from branch
master
- 57111447 - Ignore newly generated files for CI unit tests
- df66df29 - Add setup.py/cfg for project metadata and packaging.
- 7a700f8c - Create tox file and support configuration files
- fa805f60 - Add test folder files and __init__ support files
- 2da936ea - Add gitlab-ci using tango image
- c79d650d - Do not use spaces in setup.cfg name attribute
- 7fe92c38 - Fix the PBR version until another solution is found
- 08296e5f - Fix invalid yml
- f25a87ed - Allow linting failure and limit linting scope
- 40718936 - Use python version that matches version of itango image
- d646b469 - Try to resolve tango requirements for CI
- a2566e78 - Allow unit tests access to global packages
- 88a56823 - Add additional init files for discovery
- 4cbede73 - Managed to have files functional in same directory
- eff25bf4 - L2SS-259: Pin PBR_VERSION in gitlab-ci
- 54269d9e - L2SS-259: Ensure git is installed for CI docker image
- 293d71d5 - L2SS-259: Clean up of some initial solutions
- c378a0d7 - L2SS-259: Example unit tests for lofar_git
- 41ff8e80 - Ignore generated AUTHORS and ChangeLog files
- 06906aa2 - L2SS-259: Add build stage for building docker images
- ac6de2a0 - L2SS-259: Try ubuntu:20.04 instead of docker compose image
- fc5812d6 - L2SS-259: Use alpine Linux docker image for building
- a8920ead - L2SS-259: Resolve error in environment PATH
- 77784e87 - L2SS-259: Attempt at correcting CI paths for docker images
- 3ab7e0e6 - L2SS-259: Disable CI docker image builds for now
- 897ca410 - L2SS-259: Documentation for unit testing and clarify project name
- b33c683e - L2SS-259: Fix typo in test README headings
- bec6a8bd - L2SS-259: Add todo to update CI registry images
- 3a0102e4 - L2SS-259: grammatical improvement for requirements
- ea741d29 - L2SS-259: Improve spelling and grammar
- c43eb8b5 - L2SS-259: Actually missing newline this time
- 0d0dc9bd - L2SS-259: Make pep8 check for newlines and disable softfail
- b90c88db - L2SS-259: Explicitly install all dependencies
- 8f40efc1 - Merge branch 'L2SS-259-ci-unit-tests' of git.astron.nl:lofar2.0/tango into L2SS-259-ci-unit-tests
Toggle commit list-
39b27b61...fd91d0e8 - 89 commits from branch
enabled an automatic merge when the pipeline for 8f40efc1 succeeds
mentioned in commit 0c7aaa81