Get the Jasmine download. If you don’t want to use GitHub… and I don’t, go here , and download the most recent jasmine-standalone-(version).zip, and expand it. You can then make that the start of a template for your file/folder structure:
Schweeeet. I did no editing, and no compilation (well, ref the latter, of course not).
In fact the Jasmine folks have gone 1 better: even though when you look at the spec and src folders, and at SpecRunner.html, it’s all pretty much self-documenting, they also have a good documentation section:
As a final action, I changed a test expectation in the delivered set from false to true, just so you can see what failure looks like:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Jasmine Spec Runner v2.2.0</title> <link rel="shortcut icon" type="image/png" href="lib/jasmine-2.2.0/jasmine_favicon.png"> <link rel="stylesheet" href="lib/jasmine-2.2.0/jasmine.css"> <script src="lib/jasmine-2.2.0/jasmine.js"></script> <script src="lib/jasmine-2.2.0/jasmine-html.js"></script> <script src="lib/jasmine-2.2.0/boot.js"></script> <!-- include source files here... --> <script src="src/Player.js"></script> <script src="src/Song.js"></script> <!-- include spec files here... --> <script src="spec/SpecHelper.js"></script> <script src="spec/PlayerSpec.js"></script> </head> <body> </body> </html>