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

Adjust the timer behaviour in the RSpec adapter #184

Merged
merged 1 commit into from
Dec 29, 2022

Conversation

shadre
Copy link
Member

@shadre shadre commented Dec 28, 2022

Prevent the timer being stopped in the same test file.

Shout-out to @evanlok for the inspiration and code example

@shadre shadre requested a review from ArturT December 28, 2022 17:45
Copy link
Member

@ArturT ArturT left a comment

Choose a reason for hiding this comment

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

It seems to work fine. 👍 I tested it locally with a rails app project by commenting out this line.

You could update the changelog as part of this PR.

@ArturT
Copy link
Member

ArturT commented Dec 28, 2022

Prevent the timer being stopped in the same test file.

Was this also causing some of the test files to have 0 seconds of execution time? I was not sure how to reproduce this edge case.

@shadre
Copy link
Member Author

shadre commented Dec 29, 2022

Was this also causing some of the test files to have 0 seconds of execution time? I was not sure how to reproduce this edge case.

It seems plausible but I am not entirely sure about that.

@shadre shadre force-pushed the fix-time-tracking-bug branch from 893c8cc to cf1758c Compare December 29, 2022 13:14
@shadre shadre merged commit ae62c60 into master Dec 29, 2022
@shadre shadre deleted the fix-time-tracking-bug branch December 29, 2022 13:16
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