Skip to content

Commit 87aa63d

Browse files
committed
moved coverage report script to extras/
1 parent 432251b commit 87aa63d

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Makefile.buildbot

-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
TRIAL := $(shell which trial)
2-
COVERAGE_DIR ?= "htmlcov"
32

43
deb:
54
python extras/makedeb.py build
65

76
deb-clean:
87
debclean
98
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}"

extras/coverage-report.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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

0 commit comments

Comments
 (0)