chaotic-grader
v0.0.2
Published
Node.js module to inject random bugs into student source code
Readme
How to run this script
Installation
- Clone the repo
- Get the latest version of NodeJS
- Install dependency modules using command:
npm install - Change working directory to
/path/to/chaos/ - Run
node ChaoticGrader.js -r /specify/path/to/src/root -s /path/to/srcdir -t /path/to/test/file(For instance, command to run the example in this repo:node ChaoticGrader.js -r examples/cashdrawer/ -s examples/cashdrawer/src -t examples/cashdrawer/test/test.js)
Running Test Coverage Tool
- Install Istanbul as root/admin with
npm install -g istanbul - Change working directory to
/path/to/chaos/ - Run
istanbul cover node_modules/mocha/bin/_mocha -- -R spec - Open
coverage/lcov-report/index.html
