Running Selenium tests in parallel for the Play Project

I have a Play Project (using Scala) with a bunch of Selenium tests in a file. I use SBT as my build tool. In my SBT console, I run the test file using: sbt "test-only test.selenium.MySpec". I see that all tests are executed sequentially, although I have sbt.Keys.fork in Testset the value true(in my opinion, this is the default value).

I use the Firefox browser for my Selenium tests. I am in Selenium 2.42.0, Play 2.2.2, SBT 0.13.0 and Scala 2.10.4, if that matters.

Is it possible to run tests in parallel (on my local machine)? I have seen other options, such as the Selenium Grid, where I can distribute my tests for horizontal scaling, but I'm trying to install this setting on my local machine.

+4
source share
1 answer

A plug does not mean run in parallel. Fork means "start a new JVM process to run tests."

Sbt 0.13.5 has some new / experimental code for running forked tests in parallel. You can enable it with the following setting:

testForkedParallel in Test := true

, . , , .

+3

Source: https://habr.com/ru/post/1543311/


All Articles