diff --git a/.travis.yml b/.travis.yml index 2f6b3ba..c7c311c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ script: - if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then flake8 .; fi - if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then doc8 $(git ls-files '*.rst'); fi - yamllint --strict $(git ls-files '*.yaml' '*.yml') - - coverage run --source=yamllint setup.py test + - coverage run --source=yamllint -m unittest discover - if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then python setup.py build_sphinx; fi diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index af32122..f57ec5e 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -13,7 +13,9 @@ Pull Request Process .. code:: bash - python setup.py test + pip install --user . + python -m unittest discover # all tests... + python -m unittest tests/rules/test_commas.py # or just some tests (faster) 3. If you add code that should be tested, add tests.