Hi,
Is there a way to run a single JavaScript test file?
Thanks
Additionally how to you run the javascript tests at all? It looks like bundle exec rake spec is only testing ruby files… Or at least, my javascript test that should have failed didn’t.
Hi Mark Wingerd welcome to the forum
Looking for qunit?
Previous tutorial: Developing Discourse Plugins - Part 5 - Add an admin interface
Did you know that Discourse has two large test suites for its code base? On the server side, our Ruby code has a test suite that uses rspec . For the browser application, we have a qunit suite that has ember-testing included.
Assuming you have a development environment set up, if you visit the http://localhost:4200/tests URL you will start running the JavaScript test suite in your browser. One fun aspect is that …
1 Like