Matthew Wang преди 11 години
родител
ревизия
0e2020eac2
променени са 3 файла, в които са добавени 9 реда и са изтрити 4 реда
  1. 1
    0
      .gitignore
  2. 2
    2
      .travis.yml
  3. 6
    2
      Makefile

+ 1
- 0
.gitignore Целия файл

1
 *.pyc
1
 *.pyc
2
 *~
2
 *~
3
 *.tmp
3
 *.tmp
4
+.coverage
4
 /MANIFEST
5
 /MANIFEST
5
 /build/
6
 /build/
6
 /cdiff.egg-info/
7
 /cdiff.egg-info/

+ 2
- 2
.travis.yml Целия файл

9
     - "pypy"
9
     - "pypy"
10
 
10
 
11
 install:
11
 install:
12
-    - python setup.py install
12
+    - python setup.py --quiet install
13
 
13
 
14
 script:
14
 script:
15
-    - make test
15
+    - make test cov

+ 6
- 2
Makefile Целия файл

4
 PYPI = https://pypi.python.org/pypi
4
 PYPI = https://pypi.python.org/pypi
5
 
5
 
6
 .PHONY: dogfood clean build dist-test dist \
6
 .PHONY: dogfood clean build dist-test dist \
7
-	test test3 unit unit3 reg reg3 profile profile3
7
+	test test3 unit unit3 reg reg3 cov profile profile3
8
 
8
 
9
 dogfood:
9
 dogfood:
10
 	./cdiff.py
10
 	./cdiff.py
26
 reg3:
26
 reg3:
27
 	PYTHON=python3 tests/regression.sh
27
 	PYTHON=python3 tests/regression.sh
28
 
28
 
29
+cov:
30
+	coverage run tests/test_cdiff.py
31
+	coverage report --include cdiff.py --show-missing
32
+
29
 profile:
33
 profile:
30
 	tests/profile.sh profile.tmp
34
 	tests/profile.sh profile.tmp
31
 
35
 
33
 	tests/profile.sh profile3.tmp
37
 	tests/profile.sh profile3.tmp
34
 
38
 
35
 clean:
39
 clean:
36
-	rm -f MANIFEST profile*.tmp*
40
+	rm -f MANIFEST profile*.tmp* .coverage
37
 	rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
41
 	rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
38
 
42
 
39
 build:
43
 build: