Aditya Inapurapu
Aditya Inapurapu

Reputation: 31

How to run nightwatch.js tests in parallel?

I came across this question: How can I run multiple tests in parallel with JS/nightwatchjs?

But I want to execute multiple tests in parallel in the chrome browser only, in multiple chrome driver sessions.

I am used to java-testng-selenium based test suites where I can specify in the testng.xml file that I want to run multiple test classes or test methods in parallel and the framework does that exactly. If I specify in testng.xml that I want multiple test methods to execute in parallel in 4 threads, 4 chrome browser sessions pop-up and 4 test methods are executed in parallel.

Here's an example with a thread-count=2: https://github.com/adityai/testng-parallelsample/blob/master/methods-test-testng.xml

How can I do the same with nightwatch.js?

Upvotes: 0

Views: 1153

Answers (1)

Stratos Ion
Stratos Ion

Reputation: 618

You might want to try the test_workers configuration, although I haven't tried it myself it should do exactly what you are looking for.

And a nice article that demostrates it in action: https://markus.oberlehner.net/blog/speeding-up-nightwatch-powered-acceptance-tests/

Upvotes: 1

Related Questions