Skip to content

Instantly share code, notes, and snippets.

@thisgeek
Created February 16, 2012 14:56
Show Gist options
  • Save thisgeek/1845427 to your computer and use it in GitHub Desktop.
Save thisgeek/1845427 to your computer and use it in GitHub Desktop.
Jasmine AMD Spec Runner
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine AMD Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.1.0/jasmine_favicon.png" />
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.1.0/jasmine.css" />
<script src="lib/require.js" type="text/javascript"></script>
<script type="text/javascript">
require.config({
waitSeconds: 20 // Keep wait tolerance high for tests
});
</script>
<script type="text/javascript" src="lib/jasmine-1.1.0/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-1.1.0/jasmine-html.js"></script>
<script src="lib/jasmine-jquery-1.3.1.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
jasmine.getFixtures().fixturesPath = 'fixtures';
</script>
<script type="text/javascript">
require([
// include spec files here, e.g.
// 'example.spec.js'
], function () {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var trivialReporter = new jasmine.TrivialReporter();
jasmineEnv.addReporter(trivialReporter);
jasmineEnv.execute();
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment