-
Notifications
You must be signed in to change notification settings - Fork 27
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
Seed value is no longer printed starting in version 2.2.4 #60
Comments
Since 2.2.4 includes #48 as the only documented change, I assume something there broke. |
Meant to include other version information, apologies! 😅
Happy to provide any other extra information if it's helpful. |
Please add the Here's the output with the
Output without the seed parameter
Thanks for the bug report @aprescott and sorry for the inconvenience. Please let me know if adding the |
This option is enabled for config.order = :random
Kernel.srand config.seed Moreover, specify { puts 1; expect(1).to eq(1) }
specify { puts 2; expect(1).to eq(1) } Then If
That feels incorrect to me? I understand there are other bugs being addressed by the change in behavior here, but it effectively means that As a user I think this makes Could |
To expand on that a bit: basically if |
The actual issue/confusion with TurboTests is that it doesn't print the
I see, thank you. |
For what it's worth, this is a slightly different description of an issue/confusion than the one I have. I think there are at least 2 or 3 related things involved: If the seed is intended to be random per process by design, then there really needs to be a way to have access to that information. Without a printed seed value, then a randomized test run is much harder to reproduce, even when using the exact same subprocess command that Printing the seed value for each subprocess would certainly help with reproducing random-order test failures, even if there are different seeds for each subprocess. Since there are N separate seed values, I'm not too sure what that actually looks like in terms of command output.
Indeed. I understand that difference, but what I was imagining is something like:
(It would also be great to ensure that Checking |
I've opened a PR that implements this idea: #63. |
Version 2.2.4 appears to no longer display any seed information output, for success or failure, either at the beginning or the end of the run:
Compare that to 2.2.3, which outputs at the start and the end of the test, as expected:
The text was updated successfully, but these errors were encountered: