|
ECMAScript/JavaScript Test Coverage
Using Blanket and QUnit |
|
Prof. David Bernstein |
| Computer Science Department |
| bernstdh@jmu.edu |
blanket.js or it might be named
blanket.min.js
script element that loads Blanket
(named appropriately) to the HTML document
that sets up the QUnit tests
data-cover="true" in the
script tagfile:// protocol
(i.e., you may have to load the files from an HTTP server)
<!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>