Sfoglia il codice sorgente

Switch to code-cov

Alexandre Flament 7 anni fa
parent
commit
fb587f11fe
4 ha cambiato i file con 7 aggiunte e 6 eliminazioni
  1. 2
    2
      .travis.yml
  2. 3
    3
      manage.sh
  3. 1
    0
      requirements-dev.txt
  4. 1
    1
      requirements.txt

+ 2
- 2
.travis.yml Vedi File

@@ -20,14 +20,14 @@ before_install:
20 20
 install:
21 21
   - ./manage.sh npm_packages
22 22
   - ./manage.sh update_dev_packages
23
-  - pip install coveralls
23
+  - pip install codecov
24 24
 script:
25 25
   - ./manage.sh styles
26 26
   - ./manage.sh grunt_build
27 27
   - ./manage.sh tests
28 28
 after_success:
29 29
   - ./manage.sh py_test_coverage
30
-  - coveralls
30
+  - codecov
31 31
 notifications:
32 32
   irc:
33 33
     channels:

+ 3
- 3
manage.sh Vedi File

@@ -73,9 +73,9 @@ unit_tests() {
73 73
 
74 74
 py_test_coverage() {
75 75
     echo '[!] Running python test coverage'
76
-    PYTHONPATH=`pwd` python -m nose2 -C --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit"
77
-    coverage report
78
-    coverage html
76
+    PYTHONPATH=`pwd` python -m nose2 -C --log-capture --with-coverage --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit" \
77
+    && coverage report \
78
+    && coverage html
79 79
 }
80 80
 
81 81
 robot_tests() {

+ 1
- 0
requirements-dev.txt Vedi File

@@ -1,6 +1,7 @@
1 1
 babel==2.3.4
2 2
 mock==2.0.0
3 3
 nose2[coverage-plugin]
4
+cov-core==1.15.0
4 5
 pep8==1.7.0
5 6
 plone.testing==5.0.0
6 7
 splinter==0.7.5

+ 1
- 1
requirements.txt Vedi File

@@ -7,4 +7,4 @@ pygments==2.1.3
7 7
 pyopenssl==17.2.0
8 8
 python-dateutil==2.6.1
9 9
 pyyaml==3.12
10
-requests[socks]==2.14.2
10
+requests[socks]==2.18.4