Hobby programming project, with the intent of simplifying overtime calculation(s).
- Read in input from CSV files
- (Rows of "start time" and "end time")
- Have it keep track of current surplus/deficit
- Have it also keep track of surplus/deficit per week
- Specify desired surplus/deficit to aim for (maybe also deadline so as to aim for a vacation?)
- Display these intended features in a simple web GUI
- (Maybe do this in a separate NodeJS repo?)
- Split out library logic
- Run (just) tests:
pipenv run python -m pytest tests
- py.test is used, and lies in
Pipfile
. Execute command from git repo root.
- py.test is used, and lies in
- Run test Coverage:
make test
(Runs above test-command and creates coverage report). - Open coverage report in browser:
pipenv run coverage html && <browser> htmlcov/index.html
- Requires you to have run the equivalent of
python -m coverage report -m
, whichmake test
does.
- Requires you to have run the equivalent of
The tests are composed by with the Hypothesis framework, and run with py.test.
The tests should lie in the tests/
folder inside the git repo.
Any data used for integration testing lies inside tests/data/
.