Skip to content

Instantly share code, notes, and snippets.

@EloB
Created July 9, 2013 16:26
Show Gist options
  • Save EloB/5958839 to your computer and use it in GitHub Desktop.
Save EloB/5958839 to your computer and use it in GitHub Desktop.
Look at lines 11 to 14.
<!DOCTYPE HTML>
<html>
<head>
<title>Testem + QUnit</title>
<script type='text/javascript' src='steal/steal.js'></script>
<script type='text/javascript'>
// Load funcunit and qunit first, then the testem.js,
// then our qunit tests.
var testFiles = [];
testFiles.push('src\foo.js');
testFiles.push('src\hello.js');
testFiles.push('tests\foo_tests.js');
testFiles.push('tests\hello_tests.js');
steal('funcunit/qunit')
.then('/testem.js')
.then.apply(null, testFiles);
</script>
<link rel="stylesheet" type="text/css" href="funcunit/qunit/qunit.css" />
</head>
<body>
<h1 id="qunit-header">Testem + Qunit Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<div id="test-content"></div>
<ol id="qunit-tests"></ol>
<div id="qunit-test-area"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment