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

3718 – Update how we retry tests #397

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

vasconsaurus
Copy link
Contributor

@vasconsaurus vasconsaurus commented Sep 27, 2023

Description

When running locally we might not want the tests to retry, to do this
we would need to comment out the retry lines. We want to make this easier
on the developer

Converting the env variable to an integer because ENV[] on ruby returns a string
https://ruby-doc.org/core-3.0.0/ENV.html

References: 3718

How has this been tested?

Changed a test to make it fail.
Ran tests locally without setting TEST_RETRY_COUNT, test failed and didn't retry.
Set the env var inside the container (export TEST_RETRY_COUNT=5) and ran the tests again, it retried 5 times.

When running locally we might not want the tests to retry, to do this
we would need to comment out the retry lines. We want to make this easier
on the developer

Conerting the env variable to an integer because ENV[] on ruby returns a string
https://ruby-doc.org/core-3.0.0/ENV.html
@codeclimate
Copy link

codeclimate bot commented Sep 27, 2023

Code Climate has analyzed commit ebc7bce and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 98.6% (0.0% change).

View more on Code Climate.

@vasconsaurus vasconsaurus marked this pull request as ready for review September 27, 2023 18:40
Copy link
Contributor

@caiosba caiosba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, Manu!

@vasconsaurus vasconsaurus merged commit e168c72 into develop Sep 27, 2023
4 checks passed
@vasconsaurus vasconsaurus deleted the 3718-update-how-we-retry-tests branch September 27, 2023 19:53
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

Successfully merging this pull request may close these issues.

2 participants