How do I set up remote browsers in Karma?

continuous-integration, end-to-end, integration-testing, karma-runner

Solution

You can start a webdriver server on your remote servers and configure karma to use the karma-webdriver-launcher to run the tests on the browsers from your webdriver servers.

- WebDriver : http://code.google.com/p/selenium/wiki/RemoteWebDriverServer

- karma-webdriver-launcher : https://github.com/karma-runner/karma-webdriver-launcher

Problem

I'm having trouble wrapping my head around Karma. I'd like to: - Set up multiple hosts on my network, running Linux, Mac and Windows - Preferably also run on Android and iPhone - Have these be available for running end-to-end tests through Karma - Have them run tests on a remote location, not locally The goal: being able to automate tests which ensures that our site works on all platforms and browsers, not only the ones available to me locally. Is this possible? I'm struggling to find any good guides for setting this stuff up.

Original source