Parallel test execution when using CLIRunner in a nodejs server. #2888
Unanswered
vikramarka
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.. I am using nightwatch CliRunner in a nodejs as a service. I am trying to enable the parallel testing by setting
After adding these two, I am getting the message "Started child process for: xxxx.spec.js", but it is failing soon afterwards with error "Address already in use ::: 8081" This address is actually the address of the nodejs server. So is it trying to run the server again?
I understand that nightwatch creates child processes and runs the node command again with some additional args. My requirement is I am running these tests as part of a nodejs server. If I enable the test_workers, the child processes are running the command to start the server and it is failing. I am using CLIRunner inside nodejs server to run the tests. Is there a way to run tests parallelly in this scenario using saucelabs? Can we run multiple CLIRunner instances passing single file to each of these instance? Can someone please help in figuring this out?
Beta Was this translation helpful? Give feedback.
All reactions