This repository was archived by the owner on Aug 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed
Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ language: python
22sudo : false
33python :
44 - " 2.7"
5- - " 3.5"
65
76before_install :
87 - pip install codecov
Original file line number Diff line number Diff line change 1- .PHONY : docs test
21
32help :
43 @echo " env create a development environment using virtualenv"
54 @echo " deps install dependencies"
65 @echo " clean remove unwanted stuff"
76 @echo " lint check style with flake8"
7+ @echo " coverage run tests with code coverage"
88 @echo " test run tests"
99
1010env :
@@ -27,8 +27,15 @@ clean:
2727lint :
2828 flake8 twitter > violations.flake8.txt
2929
30+ coverage :
31+ nosetests --with-coverage --cover-package=twitter
32+
3033test :
31- python test.py
34+ nosetests
35+
36+ build : clean
37+ python setup.py sdist
38+ python setup.py bdist_wheel
3239
3340upload : clean
3441 python setup.py sdist upload
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ You can install python-twitter using::
2424
2525 $ pip install python-twitter
2626
27- Testing::
28-
29- $ python test.py
30-
3127================
3228Getting the code
3329================
@@ -47,14 +43,18 @@ Activate the virtual environment created:
4743
4844 $ source env/bin/activate
4945
50- Run tests:
46+ =============
47+ Running Tests
48+ =============
49+ Note that tests require ```pip install nose` `` and optionally ```pip install coverage` ``:
50+
51+ To run the unit tests:
5152
5253 $ make test
5354
54- To see other options available, run:
55-
56- $ make help
55+ to also run code coverage:
5756
57+ $ make coverage
5858
5959=============
6060Documentation
You can’t perform that action at this time.
0 commit comments