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-coverfolder (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-benchmarkandbase - All the zombie tests in
files-tests - Files related to determining each test's coverage of zombie in
files-coverzombie-combined-all.rktcontains 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.rktfile is a copy ofzombie-combined-all.rkt, but with all but ONE of the run-test statements inzombie-combined-all.rktremoved. theXXXcorresponds to the line number of the run-test statement fromzombie-combined-all.rktthat is included inrun-test-XXX.rkt. the run-test statement can be found at the bottom of therun-test-XXX.rktfile. cover-cmd.txtprovides the text of the raco cover command you should run to generate coverage info of all therun-test-XXX.rktfiles
cover-script.rkt, a script that useszombie-combined-all.rktto generate arun-test-XXX.rktfile for each run-test statement inzombie-combined-all.rkt. this script also generates the raco cover command incover-cmd.txtfor ease of running raco cover.coverage-newcontains the output of running the raco cover command. openindex.htmlin your browser to see the stats generated by raco cover for eachrun-test-XXX.rktfile.