-
Notifications
You must be signed in to change notification settings - Fork 105
/
coverage.bat
33 lines (27 loc) · 1.4 KB
/
coverage.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set PYTHONPATH=.
REM Update, as needed, to point to your own Python installation or
REM just eliminate if you already have Python executables in your path
REM ------------------------------------------------------------------
set COVERAGE3=c:\python37\Scripts\coverage-3.7.exe
echo "Running test cases -- should take about 15 minutes."
%COVERAGE3% run -m unittest discover > tests.txt
%COVERAGE3% run -a ch07\replacement.py >> tests.txt
echo "Generating figures and tables for the book. This will take about six hours."
%COVERAGE3% run -a book.py > book.txt
echo "Generating Timing results for each chapter. Should take about 2.5 hours"
%COVERAGE3% run -a algs\timing.py > tim_algs.txt
%COVERAGE3% run -a ch02\timing.py > tim_ch02.txt
%COVERAGE3% run -a ch03\timing.py > tim_ch03.txt
%COVERAGE3% run -a ch04\timing.py > tim_ch04.txt
%COVERAGE3% run -a ch05\timing.py > tim_ch05.txt
%COVERAGE3% run -a ch07\timing.py > tim_ch07.txt
echo "Generating challenge exercises for each chapter. Should take about an hour."
%COVERAGE3% run -a ch01\challenge.py > ch01.txt
%COVERAGE3% run -a ch02\challenge.py > ch02.txt
%COVERAGE3% run -a ch03\challenge.py > ch03.txt
%COVERAGE3% run -a ch04\challenge.py > ch04.txt
%COVERAGE3% run -a ch05\challenge.py > ch05.txt
%COVERAGE3% run -a ch06\challenge.py > ch06.txt
%COVERAGE3% run -a ch07\challenge.py > ch07.txt
echo "Generating coverage report in htmlcov\index.html"
%COVERAGE3% html