guardian / sbt-jasmine-plugin

An SBT plugin for running jasmine tests in your build.
23 stars 28 forks source link

jasmine-gen-runner task requires require.js #10

Open williscool opened 11 years ago

williscool commented 11 years ago

If you don't have it loaded the task just silently fails to make the html file.

Also the docs don't mention you need it either

adding proper require to require js makes it work though

jasmineRequireJsFile <+= sourceDirectory { src => src / "main" / "webapp" / "static" / "js" / "lib" / "require" / "require-2.0.6.js" }

jasmineRequireConfFile <+= sourceDirectory { src => src / "test" / "webapp" / "static" / "js" / "require.conf.js" }
peter-fu commented 11 years ago

+1, ran into the same issue tonight.