Questions tagged [parallel-testing]
189 questions
3
votes
1 answer
Getting Parser Error: inconsistent cell count within the table - while running tests in Parallel - Selenium Cucumber Maven framework with Junit
I have configured Selenium-cucumber maven framework with Junit. After adding the cucumber-jvm-parallel plugin & maven-surefire plugin , commented the statements inside @CucumberOptions which we have written inside TestRunnerTest.java file .After…

Milu
- 135
- 1
- 3
- 13
3
votes
0 answers
In Jenkins, how to use the parallel test executor (splitTests) in a declarative pipeline?
I'm using declarative pipelines in Jenkins and I would like to parallelize tests. The obvious choice seems to be to use the Parallel Test Executor (splitTests) but I can't find examples or figure out the syntax to use in a declarative pipeline.

Martin Filteau
- 31
- 1
3
votes
2 answers
paralell_rspec with options --exclude-pattern
Trying to exclude the specs in the /home dir during the parallel run.
Tried a few things similar to the following:
parallel_rspec myproj -n 4 -o '--exclude-pattern "myproj/spec/home/*_spec.rb"'
parallel_rspec ./myproj -n 4 -o '--exclude-pattern…

danksim
- 617
- 3
- 9
- 27
3
votes
0 answers
Parallel test execution with rspec and database cleaning
I have upgraded rspec to version 3.2 and now I get a lot of database errors (Mysql2::Error: Duplicate entry) when I run the specs. The specs seems to be running in parallel. I am using the database cleaner gem (1.4.1), and it was working before the…

Daniel Cukier
- 11,502
- 15
- 68
- 123
3
votes
2 answers
Parallelize functional tests while using a SQLite database
I have added many tests in my Symfony2 project, but now with 53 tests and 176 assertions it takes about a minute. I'm trying to reduce this time because if I enable code coverage report it takes 15 minutes.
$ phpunit -c app/phpunit.xml.dist PHPUnit…

A.L
- 10,259
- 10
- 67
- 98
3
votes
1 answer
Rails parallel_tests with RSpec Request Specs: Address already in use error
When I try to run my specs in parallel using the parallel_tests Gem, I am getting these error messages:
foo:~/Projects/cucumber-capybara-saucelabs/spec/requests [] ➜ rake parallel:spec
(in /Volumes/Storage/Projects/cucumber-capybara-saucelabs)
8…

TheFooProgrammer
- 2,439
- 5
- 28
- 43
2
votes
1 answer
How can we run Cypress tests in parallel on a single machine?
I need to run my tests on a single machine. The project has more than 50 tests (spec files).
Is it possible to achieve this via jenkins configuration?

jayashree r
- 41
- 3
2
votes
0 answers
File-operation related test fails when running tests in parallel with Rails 6 and minitest
I'm trying to enable parallelization of tests in my rails app, but for some reason one of the test breaks as soon as I enable it:
ERROR["test_convert_to_letter", Minitest::Result, 1.8716010000061942]
test_convert_to_letter#Minitest::Result…

jasir guzman
- 21
- 1
2
votes
0 answers
Context Injection in Specflow failing in c# when parallel test are executed in xunit, but works in sequential run
I created a xunit project and added specflow with Gherkin and selenium web drivers to the project. I've following StepDefinition file,
[Binding]
public class MyPageStepDefinition
{
private readonly UserContext _userContext;
private readonly…

Nandini
- 21
- 4
2
votes
2 answers
SpinWait.SpinUntil taking MUCH longer than timeout to exit while waiting for Selnium element to exist
I have a relatively simple method to wait until an element exists and is displayed. The method handles the situation where more than a single element is returned for the given By (usually we only expect one of them to be displayed but in any case…

Ory Zaidenvorm
- 896
- 1
- 6
- 20
2
votes
0 answers
Error org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate
I was trying to achieve, Cucumber feature level parallel execution using pico Container.
When I am using a shared Driver in a context Class as below, I get org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate
public…

Hari Krishna
- 21
- 4
2
votes
1 answer
Code coverage not working when used in conjunction with the parallel_spec task
I would like to know why parallel rspec is showing a different coverage percentage and missed resources compared to when I run without parallelisation.
Here is the output:
Sysctl[net.ipv6.conf.all.accept_redirects]
…

Ajaz
- 21
- 1
2
votes
1 answer
apacheBench always gives error Non-2xx responses:
I have been working with apache bench for a while now and until now it worked just fine. However, today I started getting several Non-2xx responses:. In order to investigate further, I tried to run a test with a simple website, so I run:
ab -n 100…

Diana Vallverdu
- 321
- 4
- 13
2
votes
1 answer
How to initialize shared variables before parallel test in scalatest
I have scalatest codes like following:
class myTest extends FlatSpec with ParallelTestExecution {
val testSuiteId: String = GenerateSomeRandomId()
it should "print test id" in {
println(testSuiteId)
}
it should "print…

yay1
- 156
- 4
2
votes
0 answers
How to run Integration Tests with Spring in parallel with dynamic DB ports
Description
We have a growing application with numerous integration tests which involve connection to a redis DB. Because of the growing numbers we want to parallelize them at least at class level.
Till now we did run all tests sequentially and…

MonkeyTonk
- 55
- 10