Skip to content

Commit a62d63b

Browse files
authored
Merge pull request #42 from PPeitsch/feature/issue-29-test-coverage
feat(tests): increase test coverage to 98% (closes #29)
2 parents 7d8cb3a + fad643f commit a62d63b

10 files changed

Lines changed: 1229 additions & 5 deletions

File tree

.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
source = app
3+
omit =
4+
init_db.py
5+
*/migrations/*
6+
*/__pycache__/*
7+
8+
[report]
9+
exclude_lines =
10+
pragma: no cover
11+
def __repr__
12+
raise NotImplementedError
13+
if __name__ == .__main__.:

.github/workflows/test.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,16 @@ jobs:
5757
FLASK_APP: app:create_app('app.config.config.Config')
5858
SECRET_KEY: test-key
5959
run: |
60-
pytest tests/ --cov=app --cov-report=xml
60+
pytest tests/ --cov=app --cov-report=xml --junitxml=junit.xml
6161
62-
- name: Upload coverage reports to Codecov
62+
- name: Upload coverage to Codecov
6363
uses: codecov/codecov-action@v5
6464
with:
6565
token: ${{ secrets.CODECOV_TOKEN }}
6666
slug: PPeitsch/TimeTrack
67+
68+
- name: Upload test results to Codecov
69+
if: ${{ !cancelled() }}
70+
uses: codecov/test-results-action@v1
71+
with:
72+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
[![Black](https://img.shields.io/badge/Code%20Style-Black-black.svg)](https://github.com/psf/black)
77
[![GitHub license](https://img.shields.io/github/license/PPeitsch/TimeTrack.svg)](LICENSE)
88
[![Contributions welcome](https://img.shields.io/badge/Contributions-welcome-brightgreen.svg)](CONTRIBUTING.md)
9-
[![Code coverage](https://img.shields.io/badge/Coverage-90%25-green.svg)](https://codecov.io/)
9+
[![codecov](https://codecov.io/gh/PPeitsch/TimeTrack/graph/badge.svg)](https://codecov.io/gh/PPeitsch/TimeTrack)
1010
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
1111

1212
TimeTrack is a simple yet powerful time tracking application designed for managing work hours, leaves, and holidays. Built with Flask and compatible with PostgreSQL or SQLite, it provides a user-friendly interface for tracking your time and analyzing your work patterns.
1313

14-
![TimeTrack Calendar View](https://via.placeholder.com/800x400?text=TimeTrack+Calendar+View)
1514

1615
## 🌟 Features
1716

@@ -71,7 +70,7 @@ python init_db.py
7170
flask run
7271
```
7372

74-
7. Access the application at http://localhost:5000
73+
7. Access the application at `http://localhost:5000`
7574

7675
## 📖 Usage
7776

0 commit comments

Comments
 (0)