Skip to content

Commit ec57acc

Browse files
authored
Merge pull request #1293 from nfearnley/patch-testing
Updates to testing process
2 parents 082a7c6 + 3f1dbc2 commit ec57acc

6 files changed

Lines changed: 10 additions & 6 deletions

File tree

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Sample conf file from http://nedbatchelder.com/code/coverage/config.html
22
[run]
3+
source = sopel
34
branch = True
45

56
[report]
@@ -20,6 +21,8 @@ exclude_lines =
2021
if 0:
2122
if False:
2223
if __name__ == .__main__.:
24+
25+
show_missing = True
2326

2427
[html]
2528
directory = coverage_html_report

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ addons:
1818
- enchant
1919
install:
2020
- pip install -r requirements.txt -r dev-requirements.txt
21-
- pip install coveralls
22-
- pip install flake8
2321
script:
2422
- ./checkstyle.sh
25-
- coverage run --source sopel -m py.test -v .
26-
- coverage report --show-missing
23+
- coverage run -m py.test -v .
24+
- coverage report
2725
after_success:
2826
coveralls
2927
deploy:

dev-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
pytest
2+
coveralls
3+
flake8

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pytest]
2-
# willie/modules/ files contain tests
2+
# sopel/modules/ files contain tests
33
python_files=*.py
44
addopts = --tb=short
55
norecursedirs = contrib

pytest_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""This is a script for running pytest from the command line.
44
55
This script exists so that the project directory gets added to sys.path, which
6-
prevents us from accidentally testing the globally installed willie version.
6+
prevents us from accidentally testing the globally installed sopel version.
77
88
pytest_run.py
99
Copyright 2013, Ari Koivula, <ari@koivu.la>

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ def read_reqs(path):
5454
license='Eiffel Forum License, version 2',
5555
platforms='Linux x86, x86-64',
5656
install_requires=requires,
57+
extras_require={'dev': dev_requires},
5758
entry_points={'console_scripts': ['sopel = sopel.run_script:main']},
5859
)

0 commit comments

Comments
 (0)