Skip to content

Instantly share code, notes, and snippets.

@naganowl
Created November 23, 2016 19:58
Show Gist options
  • Save naganowl/88d87a4efdcbec5a3dbc178fb969f9b3 to your computer and use it in GitHub Desktop.
Save naganowl/88d87a4efdcbec5a3dbc178fb969f9b3 to your computer and use it in GitHub Desktop.
Barebones Jasmine HTML spec runner (assuming test directory and properly named files)
<!doctype html>
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
</head>
<body>
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<!-- include source files here... -->
<script src="../index.js"></script>
<!-- include spec files here... -->
<script src="./index.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment