Skip to content

Commit 4d2cb95

Browse files
updated req
1 parent 1bb120d commit 4d2cb95

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

.coveragerc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[run]
2+
omit =
3+
*/jetset/tests/*
4+
*/build/*
5+
*/jetset/jetkernel/*
6+
[report]
7+
omit =
8+
*/jetset/tests/*
9+
*/build/*
10+
*/jetset/jetkernel/*

dev_ops.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
- test a specificmethod:
4444
- `pytest --pyargs -vvv jetset.tests.test_integration::TestIntegration::tets_method`
4545

46+
- with coverage:
47+
- `pytest --pyargs -vvv jetset.tests.test_integration::TestIntegration --cov=jetset --cov-branch --cov-report=term-missing --cov-report=html --cov-config= ../.coveragerc`
48+
49+
if `.coverage` already generated:
50+
- `python -m coverage report -m`
51+
- `python -m coverage html`
52+
- `python -m coverage xml`
4653
## Installation
4754
- installing from source without setup.py install
4855
- `rm -rf ./build`

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ six
1010
emcee>=3.0.0,<=3.2
1111
pyyaml
1212
pytest
13+
pytest-cov
14+
coverage
1315
numba >=0.60,<0.65
1416
tqdm<5
1517
jupyter
1618
ipython
1719
dill
1820
swig>=4
1921
gammapy==2.*
22+
ultranest==4.4.*

0 commit comments

Comments
 (0)