Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divide tests to batches using DIVIDE_BY_TEST_COUNT strategy and rerunFailingTestsCount #524

Closed
pisarenco92 opened this issue Sep 12, 2016 · 1 comment

Comments

@pisarenco92
Copy link

pisarenco92 commented Sep 12, 2016

Hi!
When I run my project with: mvn clean verify -Dserenity.batch.strategy = DIVIDE_BY_TEST_COUNT
-Dserenity.batch.size = 2 -Dserenity.batch.number =1 -Dsurefire.rerunFailingTestsCount=1, not all tests is running.

For example I have 145 tests and if I run first batch with command: mvn clean verify
-Dserenity.batch.strategy = DIVIDE_BY_TEST_COUNT -Dserenity.batch.size = 2 -Dserenity.batch.number =1 -Dsurefire.rerunFailingTestsCount=1 is running just 24 tests.
For second batch is running 23 tests.

If I remove -Dsurefire.rerunFailingTestsCount=1 then no problems( 1 batch - 73 tests, 2 batch - 72 tests which is expected result).

I can't understand why is running like this...
@wakaleo @cliviu Any sugestions?

Thanks

@pisarenco92
Copy link
Author

I create a simple project:
com.zip

In project is 8 classes with total of 15 tests. If I run first batch: mvn clean test
-Dserenity.batch.strategy = DIVIDE_BY_TEST_COUNT -Dserenity.batch.size = 2 -Dserenity.batch.number =1 -Dsurefire.rerunFailingTestsCount=1
- running 6 tests.

Second batch: mvn clean test -Dserenity.batch.strategy = DIVIDE_BY_TEST_COUNT -Dserenity.batch.size = 2 -Dserenity.batch.number =2 -Dsurefire.rerunFailingTestsCount=1 - running 6 tests.
The problem is that 3 tests is missing.

If run same command without -Dsurefire.rerunFailingTestsCount=1:
first batch - 6 tests
second batch - 9 tests

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants