Commit e24e7c6 1 parent fc74f39 commit e24e7c6 Copy full SHA for e24e7c6
File tree 3 files changed +25
-4
lines changed
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 15
15
.venv
16
16
__pycache__ /
17
17
data /marvinMorning_date.txt
18
+ .coverage
Original file line number Diff line number Diff line change @@ -142,10 +142,11 @@ doctest:
142
142
.PHONY : coverage
143
143
coverage :
144
144
@$(call HELPTEXT,$@ )
145
- @install -d build/coverage-html
146
- $(ENV ) && coverage run --source=. -m unittest discover -b -s tests
147
- $(ENV ) && coverage html --directory=build/coverage-html
148
- $(ENV ) && coverage report -m
145
+ @install -d build/coverage
146
+ coverage run --source=. -m unittest discover -b
147
+ coverage html --directory=build/coverage
148
+ rsync -a build/coverage/ docs/coverage/
149
+ coverage report -m
149
150
150
151
151
152
Original file line number Diff line number Diff line change @@ -28,6 +28,25 @@ Check `main.py` for more details (should be moved to pydoc or other proper docum
28
28
29
29
30
30
31
+ Verify unitttest and code coverage
32
+ --------------------------
33
+
34
+ Run the unittests.
35
+
36
+ ``` bash
37
+ make unittest
38
+ ```
39
+
40
+ Run code coverage and create reports.
41
+
42
+ ``` bash
43
+ make coverage
44
+ ```
45
+
46
+ A html report of the code coverage is generated into ` build/coverage/index.html ` .
47
+
48
+
49
+
31
50
History
32
51
--------------------------
33
52
The python script, ` irc2phpbb.py ` , is a implementation of an irc bot. The bot can answer
You can’t perform that action at this time.
0 commit comments