The goal of this PR is to equip the repository with a simple testing structure and give visibility to our code coverage. Below is a list of implemented changes:
Restructure the repository to have a src/ and a tests/unit/ folder. The latter mimics the structure of the former b179ec6.
Set up Coverage.py, a tool that measures code coverage by running all tests and tracking the number of executed statements e67c450, bb5c458, 13a072c, f8038cc.
Add unit tests for get_ranker() and some of the lifters c3cf7e4, 53f1edd, cd8ae5f, 63c0d59, e55a2d4, e3c8df3.
To create a code coverage report, you can execute the following:
coverage run -m pytest
coverage report
Our test suite currently covers 33% of our code. We should strive to bring this number up to ideally above 90%.
The goal of this PR is to equip the repository with a simple testing structure and give visibility to our code coverage. Below is a list of implemented changes:
src/
and atests/unit/
folder. The latter mimics the structure of the former b179ec6.Coverage.py
, a tool that measures code coverage by running all tests and tracking the number of executed statements e67c450, bb5c458, 13a072c, f8038cc.get_ranker()
and some of the lifters c3cf7e4, 53f1edd, cd8ae5f, 63c0d59, e55a2d4, e3c8df3.To create a code coverage report, you can execute the following:
Our test suite currently covers 33% of our code. We should strive to bring this number up to ideally above 90%.