Plugins and Continuous Integration Testing

I’m looking at extending an existing plugin but it has no tests. I’d rather code to a TDD cycle but I cannot find much documentation on how to build plugins this way.

Here’s an example of a plugin using Grunt as the task runner:

Of course core uses a rake task which runs phantomjs:

cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"

There’s also Gulp and I am thinking about installing discourse and running my plugins inside of that (as above) but that would be slow…

Is there a convention for running QUnit specs for a plugin on Travis?