Skip to content

Commit

Permalink
Add the unittests to the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Mar 1, 2013
1 parent 8c60758 commit b8fc36a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ script:
- python pep8.py --testsuite testsuite - python pep8.py --testsuite testsuite
- python pep8.py --statistics pep8.py - python pep8.py --statistics pep8.py
- python pep8.py --doctest - python pep8.py --doctest
- python -m testsuite.test_all
matrix: matrix:
allow_failures: allow_failures:
- python: pypy - python: pypy
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Changelog
* Do not report false E302 when the source file has a coding cookie or a * Do not report false E302 when the source file has a coding cookie or a
comment on the first line. (Issue #174) comment on the first line. (Issue #174)


* Reorganize the tests and add basic tests for the API. (Issue #161)



1.4.4 (2013-02-24) 1.4.4 (2013-02-24)
------------------ ------------------
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ selftest :
doctest : doctest :
python pep8.py --doctest python pep8.py --doctest


alltest : test selftest doctest unittest :
python -m testsuite.test_all

alltest : test selftest doctest unittest
1 change: 1 addition & 0 deletions setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ def get_long_description():
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Libraries :: Python Modules',
], ],
test_suite='testsuite.test_all',
) )
1 change: 1 addition & 0 deletions tox.ini
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ commands =
{envpython} pep8.py --testsuite testsuite {envpython} pep8.py --testsuite testsuite
{envpython} pep8.py --statistics pep8.py {envpython} pep8.py --statistics pep8.py
{envpython} pep8.py --doctest {envpython} pep8.py --doctest
{envpython} pep8.py -m testsuite.test_all


[pep8] [pep8]
select = select =
Expand Down

2 comments on commit b8fc36a

@zyluo
Copy link
Contributor

@zyluo zyluo commented on b8fc36a Mar 8, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I use the -m option? I can't find it in the code

@florentx
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing the typo.

Please sign in to comment.