Skip to content

Commit

Permalink
Add code coverage to odr_core
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-cronin committed Aug 31, 2024
1 parent c76ace5 commit 44c876e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ vars:
sh: echo ${ROOT_DIR}/.env

tasks:
default:
desc: List all the tasks
cmds:
- task --list

echo-project-root:
desc: Echo the project root directory. Helps ensure environment is set up and tasks will run.
cmds:
Expand Down
7 changes: 7 additions & 0 deletions modules/odr_core/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ tasks:
cmds:
- python -m pytest tests

coverage:
desc: Run tests with coverage report
deps: [install]
dir: modules/odr_core
cmds:
- python -m pytest --cov=odr_core --cov-report=term-missing --cov-report=xml tests

test-db:
desc: Run tests for the database manager
cmds:
Expand Down

0 comments on commit 44c876e

Please sign in to comment.