I want to use JsTestDriver to drive my QUnit tests, but I'm confused about what to do with the #qunit-fixture
markup.
The standard QUnit test runner is an HTML page.
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" href="/qunit/qunit.css" type="text/css" />
<script type="text/javascript" src="/qunit/qunit.js"></script>
<script type="text/javascript" src="test-script.js"></script>
</head>
<body>
...
<div id="qunit-fixture">
*** tests depend on markup that goes here ***
</div>
</body>
</html>
JsTestDriver has a QUnitAdapter that can be used to load and run test-script.js, but I don't see any accommodation for getting the markup in #qunit-fixture
.
Am I missing something? Is the adapter supposed to be able to run existing QUnit tests? Or is it just a way to use QUnit's assertion framework with JsTestDriver?