searls/jasmine-maven-plugin — pull request #39 by dfabulich (2011-10-31 23:32:22+00:00)
Title: Added support for using any Selenium browser

Selenium provides an API wrapper around HtmlUnit, Firefox, IE, and others. By supporting the wrapper API, jasmine-maven-plugin can support Jasmine testing in any Selenium browser.

In the first commit, I simply swapped in Selenium's HtmlUnitDriver in place of HtmlUnit's WebClient. It's not supposed to have any user-visible effect.

In the second commit, I added a "webDriverClassName" mojo configuration parameter, which defaults to HtmlUnitDriver. If the user provides a different parameter, e.g. "org.openqa.selenium.firefox.FirefoxDriver", the Jasmine tests will run in Firefox instead of HtmlUnit.

Enjoy!