Migrii/blanket — pull request #15 by alex-seville (2012-10-16 02:56:11+00:00)
Title: Lots of changes

So I added some sample tests and test runners for QUnit and mocha. I got both of the tests passing without coverage.

Then I changed how the task handles the grunt configs a bit and made a target for qunit (another target can be created for each scenario we want to handle, doesn't need to be by test runner, but for now it works).

I ran the qunit target and it gave me instrumented code, and it changed the test runner for me to point to the instrumented code (this we may or may not want to do). After I ran the test in the browser I was able to see the coverage results. It would be quite easy to write another helper to append some js into the bottom of the test runner to display the coverage results when the qunit completes. This scheme could fall apart though depending on how scripts are referenced and whatnot. We need to see how that will work out.

I think it's a good start though. For the mocha test the remapping would just need to change the "require" statements to point to the instrumented scripts. I might tack that onto this pull request too.