Closed rjbergerud closed 8 years ago
Hey - I found out abut jasmine-given from a frontend masters tutorial. I'm trying to do the setup now for a different project, but using jasmine 2.4 instead of 1.3. Here's my SpecRunner.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Jasmine Spec Runner v2.4.1</title> <link rel="shortcut icon" type="image/png" href="lib/jasmine-2.4.1/jasmine_favicon.png"> <link rel="stylesheet" href="lib/jasmine-2.4.1/jasmine.css"> <script src="lib/jasmine-2.4.1/jasmine.js"></script> <script src="lib/jasmine-2.4.1/jasmine-html.js"></script> <script src="lib/jasmine-2.4.1/boot.js"></script> <script type="text/javascript" src="spec/helpers/jasmine-given.js"></script> <!-- include vendor files here... --> <script type="text/javascript" src="vendor/coffee-script.js"></script> <script type="text/javascript" src="number-shortening-filter.js"></script> <script type="text/coffeescript" src="spec/number-shortening-filter-spec.coffee"></script> </head> <body> <script type="text/javascript"> </body> </html>
My test file is spec/number-shortening-filter-spec.coffee. Just to try and get it to do something, I made it
spec/number-shortening-filter-spec.coffee
describe "Testing describe", -> Given -> @subject = Array 1,2,3 Then -> @subject == null
When I serve the SpecRunner.html though, I get the jasmine test-runner page that says "No specs found".
Here's what my filestructure looks like:
Ok, its an issue with coffee-script, since compiling the coffeescript to js, this works fine.
Hey - I found out abut jasmine-given from a frontend masters tutorial. I'm trying to do the setup now for a different project, but using jasmine 2.4 instead of 1.3. Here's my SpecRunner.html
My test file is
spec/number-shortening-filter-spec.coffee
. Just to try and get it to do something, I made itWhen I serve the SpecRunner.html though, I get the jasmine test-runner page that says "No specs found".
Here's what my filestructure looks like: