File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
TRIAL := $(shell which trial)
2
- COVERAGE_DIR ?= "htmlcov"
3
2
4
3
deb:
5
4
python extras/makedeb.py build
6
5
7
6
deb-clean:
8
7
debclean
9
8
python extras/makedeb.py clean
10
-
11
- # Generate coverage reports
12
- # Requires: coverage 3.3 or above from http://pypi.python.org/pypi/coverage
13
- coverage-report:
14
- coverage run --branch ${TRIAL} --reporter=text scrapy.tests
15
- coverage html -i -d "${COVERAGE_DIR}"
16
-
17
- coverage-view: coverage-report
18
- python -m webbrowser "${COVERAGE_DIR}"
19
-
20
- coverage-clean:
21
- rm -rf .coverage "${COVERAGE_DIR}"
Original file line number Diff line number Diff line change
1
+ # Run tests, generate coverage report and open it on a browser
2
+ #
3
+ # Requires: coverage 3.3 or above from http://pypi.python.org/pypi/coverage
4
+
5
+ coverage run --branch $( which trial) --reporter=text scrapy.tests
6
+ coverage html -i
7
+ python -m webbrowser htmlcov/index.html
You can’t perform that action at this time.
0 commit comments