Discourse autospec and JavaScript tests

I just did a little round of work on our JavaScript integration with bin/rake autospec

https://asciinema.org/a/118485

In particular this takes care of:

  • Rerunning current failing JS test on source code change
  • Attempts to automatically figure out the module it needs to run based on file name
  • Re-focus on another failing JS test on save

The workflow is almost the same as the workflow for Ruby tests, still need a bit more polish but it is very cool.

10 Likes