Skip to content

Commit

Permalink
Merge pull request #90 from alan-turing-institute/debug-coveralls
Browse files Browse the repository at this point in the history
Fix 0% output from coveralls
  • Loading branch information
jemrobinson authored Sep 22, 2020
2 parents b591117 + c09ebd8 commit 5543272
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ before_install:
install:
# Install package, while updating dependencies
- pip install --upgrade --upgrade-strategy eager .[dev]
# Install any javascript dependencies
- cd readabilipy/javascript && npm install && cd -

script:
# Run all pytest unit tests
- cd tests && python -m pytest -v . --cov readabilipy --cov-report term-missing --benchmark-disable && cd ..
- python -m pytest -v . --cov readabilipy --cov-report term-missing --benchmark-disable
# Run pyflakes for error detection
- pyflakes *.py readabilipy tests
# Check PEP8 compliance (ignoring long lines)
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@ dist: ## Make Python source distribution
.PHONY: test

test: venv ## Run unit tests
source $(VENV_DIR)/bin/activate && cd $(TEST_DIR) && \
python -m pytest -v . --cov readabilipy \
--cov-report term-missing --benchmark-disable
source $(VENV_DIR)/bin/activate && python -m pytest -v . --cov readabilipy --cov-report term-missing --benchmark-disable
source $(VENV_DIR)/bin/activate && pyflakes *.py readabilipy $(TEST_DIR)
source $(VENV_DIR)/bin/activate && pycodestyle --statistics \
--ignore=E501 --count *.py readabilipy $(TEST_DIR)
source $(VENV_DIR)/bin/activate && pycodestyle --statistics --ignore=E501 --count *.py readabilipy $(TEST_DIR)
source $(VENV_DIR)/bin/activate && pylint readabilipy $(TEST_DIR)/*.py

#################
Expand Down

0 comments on commit 5543272

Please sign in to comment.