Skip to content

Commit

Permalink
Add codecov report (#661)
Browse files Browse the repository at this point in the history
* Added coverage for js tests
Added codecov as python dependency and uploaded the test

* added codecov yaml file

* updated dependency for codecov

* updated dependency for codecov

* end semicolon fix

* fixed xml generation

* position change of args

* minor tweaks

* fixed codecov option

* added pytest cov

* added pytest cov

* added semicolon

* report generation
  • Loading branch information
shubhank-saxena authored Jun 22, 2020
1 parent 6a9535f commit abd613d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage:
status:
patch: off
project:
default:
threshold: 2
target: 40%
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ script:
npm test;
else
cd test;
python -m pytest -s -v --durations=10 $TESTS;
python -m pytest --cov --cov-report=xml $TESTS -s -v --durations=10;
codecov -f coverage.xml;
fi
after_success:
- if [[ "$TESTS" == "webextension" ]]; then
npm run cov:check;
npm run cov:send;
fi

jobs:
Expand Down
8 changes: 5 additions & 3 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ channels:
- main
dependencies:
- autopep8=1.5.2
- beautifulsoup4=4.9.0
- beautifulsoup4=4.9.1
- codecov=2.0.20
- dill=0.3.1.1
- flake8-isort=3.0.0
- flake8=3.8.1
Expand All @@ -15,10 +16,11 @@ dependencies:
- nodejs=13.13.0
- pandas=1.0.3
- pillow=7.1.2
- pip=20.1
- pip=20.1.1
- pre-commit=2.4.0
- psutil=5.7.0
- pyarrow=0.17.0
- pyarrow=0.17.1
- pytest-cov=2.8.1
- pytest=5.4.2
- python=3.8.2
- pyvirtualdisplay=0.2.5
Expand Down
2 changes: 2 additions & 0 deletions scripts/environment-unpinned-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ channels:
- conda-forge
dependencies:
- autopep8
- codecov
- pytest-cov
- flake8
- flake8-isort
- ipython
Expand Down

0 comments on commit abd613d

Please sign in to comment.