Explorar el Código

configure coverage

Bastien Sevajol hace 6 años
padre
commit
97ebf889b9
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
  1. 5 0
      .coveragerc
  2. 4 1
      .travis.yml

+ 5 - 0
.coveragerc Ver fichero

1
 [run]
1
 [run]
2
 source = tracim
2
 source = tracim
3
 omit = tracim/test*
3
 omit = tracim/test*
4
+
5
+[report]
6
+omit =
7
+tests/*
8
+*/python?.?/*

+ 4 - 1
.travis.yml Ver fichero

8
 install:
8
 install:
9
   - pip install --upgrade pip setuptools
9
   - pip install --upgrade pip setuptools
10
   - pip install -e ".[testing]"
10
   - pip install -e ".[testing]"
11
+  - pip install pytest-cov
12
+  - pip install python-coveralls
11
 
13
 
12
-script: pytest
14
+script:
15
+ - py.test --cov tracim
13
 
16
 
14
 after_success:
17
 after_success:
15
   - coveralls
18
   - coveralls