Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coverage report #64

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ build/
.venv
__pycache__/
data/marvinMorning_date.txt
.coverage
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ doctest:
.PHONY: coverage
coverage:
@$(call HELPTEXT,$@)
@install -d build/coverage-html
$(ENV) && coverage run --source=. -m unittest discover -b -s tests
$(ENV) && coverage html --directory=build/coverage-html
$(ENV) && coverage report -m
@install -d build/coverage
coverage run --source=. -m unittest discover -b
coverage html --directory=build/coverage
rsync -a build/coverage/ docs/coverage/
coverage report -m



Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ Check `main.py` for more details (should be moved to pydoc or other proper docum



Verify unitttest and code coverage
--------------------------

Run the unittests.

```bash
make unittest
```

Run code coverage and create reports.

```bash
make coverage
```

A html report of the code coverage is generated into `build/coverage/index.html`.



History
--------------------------
The python script, `irc2phpbb.py`, is a implementation of an irc bot. The bot can answer
Expand Down