Skip to content

Commit 49060f7

Browse files
author
Jayant Varshney
committed
Adding test suites
1 parent 5b3ce0d commit 49060f7

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

.coveragerc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[run]
2+
omit =
3+
*/python?.?/*
4+
*/lib-python/?.?/*.py
5+
*/lib_pypy/_*.py
6+
*/site-packages/ordereddict.py
7+
*/site-packages/nose/*
8+
*/unittest2/*
9+
10+
exclude_lines =
11+
# Have to re-enable the standard pragma
12+
pragma: no cover
13+
14+
[report]
15+
16+
exclude_lines =
17+
pragma: no cover
18+
if __name__ == '__main__':

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
# command to install dependencies
5+
install:
6+
- "pip install -r requirements.txt --use-mirrors"
7+
- pip install coveralls --use-mirrors
8+
# command to run tests
9+
script:
10+
- "nosetests --with-coverage --cover-erase --cover-branches --cover-package=loggly"
11+
after_success:
12+
- coveralls

Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ifndef VIRTUAL_ENV
2+
$(warning You should set up a virtualenv. See the README file.)
3+
endif
4+
5+
test: unittest lint
6+
7+
unittest:
8+
@nosetests --with-coverage --cover-html --cover-erase --cover-branches --cover-package=loggly
9+
10+
lint:
11+
@find . -name '*.py' -exec flake8 {} \;
12+
13+
verboselint:
14+
@find . -name '*.py' -exec flake8 --show-pep8 --show-source {} \;
15+
16+
# remove the doc folder
17+
clean:
18+
@find . -name "*.pyc" -delete
19+
@rm -r cover
20+
21+
publish:
22+
@python setup.py sdist upload
23+
24+
.PHONY: test unittest lint verboselint clean publish

requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage==3.7.1
2+
flake8==2.1.0
3+
mock==1.0.1
4+
nose==1.3.0
5+
requests-futures==0.9.4

0 commit comments

Comments
 (0)