Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 1.71 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.71 KB

Overtime-Calculator

Build Status Coverage Status

Hobby programming project, with the intent of simplifying overtime calculation(s).

Major dependencies:

Intended features:

  • 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

CLI

  • Run (just) tests: pipenv run python -m pytest tests
    • py.test is used, and lies in Pipfile. Execute command from git repo root.
  • 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, which make test does.

Tests:

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/.