diff --git a/.travis.yml b/.travis.yml index 87c689c86664b8736a840615f15585906c1cdeb1..3ee7592128c2717b06ff26720d4a8720f0fde055 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,11 +21,11 @@ before_install: - conda info -a install: - conda config --add channels conda-forge - - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 + - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage - source activate test-environment script: - - flake8 -v bin/ geomagio/ test/ - - nosetests -v . + - flake8 --config=.flake8 bin/ geomagio/ test/ + - nosetests . after_success: - nosetests --with-coverage --cover-package=geomagio --cover-xml - bash <(curl -s https://codecov.io/bash) diff --git a/docs/develop.md b/docs/develop.md index f94e5cf39988fd6df7f509fc80b9468f03e787b6..c5fd5d948b58c9be97d85965ace870f886f1b242 100644 --- a/docs/develop.md +++ b/docs/develop.md @@ -12,7 +12,7 @@ Begin Developing > Using Anaconda is recommended ( https://conda.io/miniconda.html ). conda config --add channels conda-forge - conda create --name geomagenv obspy pycurl flake8 nose + conda create --name geomagenv obspy pycurl flake8 nose coverage source activate geomagenv 2. Fork this project on Github ( https://guides.github.com/activities/forking/ ). @@ -43,6 +43,11 @@ Run unit tests using Nose cd geomag-algorithms nosetests +- **Unit test coverage** + + cd geomag-algorithms + nosetests --with-coverage --cover-package geomagio + - **Automatically run linting and tests while developing** (Requires NodeJS) @@ -50,6 +55,10 @@ Run unit tests using Nose npm install npm run watch +There are also "npm run" aliases for individual commands which are listed by running + + npm run + Coding Standards ----------------