joescii / sbt-js-test

sbt plugin for running JavaScript tests on the JVM with browser APIs
Apache License 2.0
13 stars 9 forks source link

Add task to write HTML file for running tests in browser #3

Open joescii opened 8 years ago

joescii commented 8 years ago

Just like sbt-jasmine-plugin has

chaotive commented 7 years ago

Hi Joe, did you get this working? if not, any pointers to make it work?

joescii commented 7 years ago

No, I haven't. I'd close the issue if I did ;)

This plugin works by creating an HTML page and referencing the needed javascript files, but then feeds it to HtmlUnit. For this task, you would want to do a similar thing, except you would open the HTML file in your browser. The other difference is how you kick off jasmine, perhaps. I don't recall the details, but it does have a nice UI for testing in a browser, rather than what the current behavior of printing to the console.

chaotive commented 7 years ago

Thanks and yeah, Jasmine is pretty good at running in browser, have already got that working in other projects.

So, it seems the main thing here would be to bootstrap Jasmine in-browser. Will see about that.