ned / coverage.py (http://nedbatchelder.com/code/coverage)

Coverage.py measures Python code coverage, typically during test execution. Kits are at PyPI: http://pypi.python.org/pypi/coverage/.

Clone this repository (size: 2.3 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/ned/coveragepy/
commit 695: 47af509cdd2a
parent 694: 69e6378b83b7
branch: default
Use loops instead of all that repetition.
Ned Batchelder / ned
2 months ago

Changed (Δ1.8 KB):

raw changeset »

allcoverage.cmd (7 lines added, 35 lines removed)

allkits.cmd (5 lines added, 14 lines removed)

alltests.cmd (9 lines added, 39 lines removed)

Up to file-list allcoverage.cmd:

@@ -5,41 +5,13 @@ del .coverage.*
5
5
set COVERAGE_PROCESS_START=c:\ned\coverage\trunk\covcov.ini
6
6
set COVERAGE_COVERAGE=1
7
7
8
call \ned\bin\switchpy 23
9
python setup.py -q develop
10
set COVERAGE_TEST_TRACER=c
11
python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
12
del coverage\tracer.pyd
13
14
call \ned\bin\switchpy 24
15
python setup.py -q develop
16
set COVERAGE_TEST_TRACER=c
17
python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
18
del coverage\tracer.pyd
19
20
call \ned\bin\switchpy 25
21
python setup.py -q develop
22
set COVERAGE_TEST_TRACER=c
23
python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
24
del coverage\tracer.pyd
25
26
call \ned\bin\switchpy 26
27
python setup.py -q develop
28
set COVERAGE_TEST_TRACER=c
29
python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
30
del coverage\tracer.pyd
31
32
call \ned\bin\switchpy 27
33
python setup.py -q develop
34
set COVERAGE_TEST_TRACER=c
35
python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
36
del coverage\tracer.pyd
37
38
call \ned\bin\switchpy 31
39
python setup.py -q develop
40
set COVERAGE_TEST_TRACER=c
41
python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
42
del coverage\tracer.pyd
8
for %%v in (23 24 25 26 27 31) do (
9
    call \ned\bin\switchpy %%v
10
    python setup.py -q develop
11
    set COVERAGE_TEST_TRACER=c
12
    python test\coverage_coverage.py run %1 %2 %3 %4 %5 %6 %7 %8 %9
13
    del coverage\tracer.pyd
14
    )
43
15
44
16
set COVERAGE_PROCESS_START=
45
17
set COVERAGE_COVERAGE=

Up to file-list allkits.cmd:

1
1
@REM Build all the kits for coverage.py
2
2
@REM Add "upload" onto the command line to also upload.
3
call \ned\bin\switchpy 23
4
python setup.py bdist_wininst %1 
5
call \ned\bin\switchpy 24
6
python setup.py bdist_wininst %1
7
call \ned\bin\switchpy 25
8
python setup.py bdist_wininst %1
3
for %%v in (23 24 25 26 27 31) do (
4
    call \ned\bin\switchpy %%v
5
    python setup.py bdist_wininst %1 
6
    )
7
9
8
call \ned\bin\switchpy 26
10
python setup.py bdist_wininst %1
11
call \ned\bin\switchpy 27
12
python setup.py bdist_wininst %1
13
14
9
set TAR_OPTIONS=--group=100
15
10
python setup.py sdist --formats=gztar %1
16
11
set TAR_OPTIONS=
17
18
@REM Py3k
19
call \ned\bin\switchpy 31
20
python setup.py bdist_wininst %1

Up to file-list alltests.cmd:

1
1
@echo off
2
2
make --quiet testdata
3
3
4
call \ned\bin\switchpy 23
5
python setup.py -q develop
6
set COVERAGE_TEST_TRACER=c
7
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
8
del coverage\tracer.pyd
9
set COVERAGE_TEST_TRACER=py
10
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
11
12
call \ned\bin\switchpy 24
13
python setup.py -q develop
14
set COVERAGE_TEST_TRACER=c
15
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
16
del coverage\tracer.pyd
17
set COVERAGE_TEST_TRACER=py
18
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
19
20
call \ned\bin\switchpy 25
21
python setup.py -q develop
22
set COVERAGE_TEST_TRACER=c
23
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
24
del coverage\tracer.pyd
25
set COVERAGE_TEST_TRACER=py
26
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
27
28
call \ned\bin\switchpy 26
29
python setup.py -q develop
30
set COVERAGE_TEST_TRACER=c
31
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
32
del coverage\tracer.pyd
33
set COVERAGE_TEST_TRACER=py
34
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
35
36
call \ned\bin\switchpy 27
37
python setup.py -q develop
38
set COVERAGE_TEST_TRACER=c
39
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
40
del coverage\tracer.pyd
41
set COVERAGE_TEST_TRACER=py
42
nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
4
for %%v in (23 24 25 26 27) do (
5
    call \ned\bin\switchpy %%v
6
    python setup.py -q develop
7
    set COVERAGE_TEST_TRACER=c
8
    nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
9
    del coverage\tracer.pyd
10
    set COVERAGE_TEST_TRACER=py
11
    nosetests %1 %2 %3 %4 %5 %6 %7 %8 %9
12
    )
43
13
44
14
call \ned\bin\switchpy 31
45
15
python setup.py -q develop