JMU
ECMAScript/JavaScript Test Coverage
Using Blanket and QUnit


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Getting Started
The HTML Document
Running the Tests
An Example

Testing the BMI Calculator Click here for a demonstration.

ecmascriptexamples/unittesting/bmi-coverage-test.html
        <!DOCTYPE html>
<html>
  <head>        
    <meta charset="utf-8">
    <title>BMI Test Suite</title>
    <link rel="stylesheet" href="QUnit/qunit.css">
  </head>
  <body>
    <div id="qunit"></div>
    <div id="qunit-fixture"></div>
    <script src="QUnit/qunit.js"></script>
    <script src="Blanket/blanket.min.js"></script>

    <script src="../clientsidebasics/bmi.js" data-cover="true"></script>
    <script src="bmi-test-nofailures.js"></script>
  </body>
</html>