for bangyen's very cool research project
Dependencies:
- Racket
- raco
- raco cover
- CONFIGURE
files-cover/zombie-combined-all.rlt
: put all the tests you want to run in there, and the program that the tests are supposed to cover. there should be a (run-tests ...) statement for each test, and each statement should be on a different line. make sure all relative paths are from POV of the root folder, notfiles-cover
folder (see relative path for zombie-hist) - RUN
cover-script.rkt
- make sure you are cd into the root folder
- run the raco cover command from the root folder. you will find the command in
files-cover/cover-cmd.txt
- now you can run the html parser on the files in
coverage-new/files-cover
!
A few things are included in this repo:
- All the zombie benchmark files (UNTYPED) + their dependencies in
files-benchmark
andbase
- All the zombie tests in
files-tests
- Files related to determining each test's coverage of zombie in
files-cover
zombie-combined-all.rkt
contains the content of all zombie benchmark files and all zombie tests, combined into one file. note that there are many run-test statements throughoutzombie-combined-all.rkt
.- each
run-test-XXX.rkt
file is a copy ofzombie-combined-all.rkt
, but with all but ONE of the run-test statements inzombie-combined-all.rkt
removed. theXXX
corresponds to the line number of the run-test statement fromzombie-combined-all.rkt
that is included inrun-test-XXX.rkt
. the run-test statement can be found at the bottom of therun-test-XXX.rkt
file. cover-cmd.txt
provides the text of the raco cover command you should run to generate coverage info of all therun-test-XXX.rkt
files
cover-script.rkt
, a script that useszombie-combined-all.rkt
to generate arun-test-XXX.rkt
file for each run-test statement inzombie-combined-all.rkt
. this script also generates the raco cover command incover-cmd.txt
for ease of running raco cover.coverage-new
contains the output of running the raco cover command. openindex.html
in your browser to see the stats generated by raco cover for eachrun-test-XXX.rkt
file.