Skip to content

Commit

Permalink
nosetests for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
SamStudio8 committed Jun 28, 2014
1 parent 4cc1f8e commit 312f6c8
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install: pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script:
- python setup.py install
- py.test --cov frontier --cov-report xml
- nosetests --with-coverage --cover-package=frontier

after_success:
- coveralls
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To test;

For coverage;

* pytest-cov
* nose
* python-coveralls

Installation
Expand Down
46 changes: 46 additions & 0 deletions docs/frontier.IO.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
frontier.IO package
===================

Submodules
----------

frontier.IO.AQCReader module
----------------------------

.. automodule:: frontier.IO.AQCReader
:members:
:undoc-members:
:show-inheritance:

frontier.IO.AbstractReader module
---------------------------------

.. automodule:: frontier.IO.AbstractReader
:members:
:undoc-members:
:show-inheritance:

frontier.IO.BamcheckReader module
---------------------------------

.. automodule:: frontier.IO.BamcheckReader
:members:
:undoc-members:
:show-inheritance:

frontier.IO.NotImplementedReader module
---------------------------------------

.. automodule:: frontier.IO.NotImplementedReader
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: frontier.IO
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy
tox
pytest
pytest-cov
nose
python-coveralls
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
test_requirements = [
"tox",
"pytest",
"pytest-cov",
"nose",
"python-coveralls",
]

Expand Down
10 changes: 5 additions & 5 deletions tests/data/example.aqc.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
lanelet sample study npg aqc ...
9999_9#9 AQCTest000008 AQCTest warn warning ...
9999_9#8 AQCTest000007 AQCTest pass passed ...
9999_9#1 AQCTest000000 AQCTest pass passed ...
9999_9#3 AQCTest000002 AQCTest fail failed ...
9999_9#2 AQCTest000001 AQCTest pass pass ...
9999_9#5 AQCTest000004 AQCTest warn warn ...
9999_9#4 AQCTest000003 AQCTest warn warning ...
9999_9#7 AQCTest000006 AQCTest fail fail ...
9999_9#6 AQCTest000005 AQCTest pass passed ...
9999_9#1 AQCTest000000 AQCTest pass passed ...
9999_9#3 AQCTest000002 AQCTest fail failed ...
9999_9#2 AQCTest000001 AQCTest pass pass ...
9999_9#9 AQCTest000008 AQCTest warn warning ...
9999_9#8 AQCTest000007 AQCTest pass passed ...
6 changes: 3 additions & 3 deletions tests/data/example.aqc.uniq.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
lanelet sample study npg aqc ...
9998_9#1 AQCTest100000 AQCTest npg pass ...
9998_9#2 AQCTest100001 AQCTest npg pass ...
9998_9#3 AQCTest100002 AQCTest npg pass ...
9998_9#4 AQCTest100003 AQCTest npg warn ...
9998_9#5 AQCTest100004 AQCTest npg pass ...
9998_9#6 AQCTest100005 AQCTest npg fail ...
9998_9#7 AQCTest100006 AQCTest npg pass ...
9998_9#1 AQCTest100000 AQCTest npg pass ...
9998_9#2 AQCTest100001 AQCTest npg pass ...
9998_9#3 AQCTest100002 AQCTest npg pass ...
9998_9#8 AQCTest100007 AQCTest npg pass ...

0 comments on commit 312f6c8

Please sign in to comment.