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

CB-15495 TestNg reports are not generated for timed out test cases #11947

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

aszegedi
Copy link
Contributor

@aszegedi aszegedi commented Dec 14, 2021

Our E2E tests are running in parallel by 8 threads (with the help of TestNG parallel attribute):

parallel="methods": TestNG will run all your test methods in separate threads. Dependent methods will also run in separate threads but they will respect the order that you specified.

This helps us to reduce the 'execution time' as tests are executed simultaneously in different threads.

Beyond this we applied a 100 minutes timeout for our test cases by default, on this way we can guarantees that none of the threads will block on a stuck test thread forever.

Unfortunately test case's thread is terminated if it takes longer than it's timeout setting. I found some similar issues at TestNG:

For now we can introduce an extra validation in our check-results.sh as a workaround for this.

@lnardai lnardai merged commit 05c85b3 into master Dec 16, 2021
@lnardai lnardai deleted the test-timeout branch December 16, 2021 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants