Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit d02a11a

Browse files
committed
Use pytest with --cov option
1 parent 7293c50 commit d02a11a

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.coveragerc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = seleniumwire/thirdparty/*

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
'dev': [
5454
'coverage',
5555
'flake8',
56-
'nose',
56+
'mitmproxy', # This should be removed once the mitmproxy backend goes
5757
'pre-commit',
58+
'pytest',
59+
'pytest-cov',
5860
'tox',
5961
'twine',
6062
'wheel',

tox.ini

+2-13
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@ commands = flake8 seleniumwire
1515
[testenv]
1616
setenv =
1717
PYTHONPATH = {toxinidir}
18-
19-
[testenv:py{36,37,38}]
20-
;setenv =
21-
; This makes the AdminClientIntegrationTest run against the mitmproxy backend.
22-
; We currently rely on the default backend being tested by the py34/py35 tests.
23-
;SW_TEST_BACKEND = mitmproxy
2418
deps =
25-
coverage
26-
nose
27-
selenium
28-
mitmproxy
29-
commands = nosetests --with-coverage --cover-erase tests
30-
31-
19+
-rrequirements.txt
20+
commands = pytest -vv --cov=seleniumwire tests

0 commit comments

Comments
 (0)