One obvious thing that Intern does not handle out of the box is starting and stopping the WebDriver server automatically before running tests. Fortunately, you can automate this task with Grunt.
As a matter of fact, by reading the Intern documentation you feel that getting Intern to work is quite complicated. You need several shells open and few running processes.
Hopefully, there is a nice Grunt plugin called grunt-run that takes care of starting/stopping services automatically, so it can automate that process for you. First thing, install it as usual:
Then, configure it to start the WebDriver process before running Intern and to stop the process once Intern tests are done:
If you want to run your tests on Firefox and other browsers, you can automate the Selenium server process. Just change the
webdriver task to:
There is no need to keep the
chromedriver command because Selenium server will use it automatically to test on Chrome.