-
Notifications
You must be signed in to change notification settings - Fork 35
It's not intuitive that a particular fuzz test will get seeded differently depending on the number and order of tests being run #192
Comments
Great point! If I understand correctly, I think this is CLI-specific, so I might title it something like:
I think it's solvable by using both the fully-qualified module name and the |
I think we made sure to distribute seeds before doing Closing. Please file the issue in the other issue like Richard suggests! |
@rtfeldman I think that seed distribution logic is located in this repo, here: https://github.com/elm-community/elm-test/blob/master/src/Test/Runner.elm? Just double checked node-test-runner and it looks like it's using that.
Would the test description also work instead of the fully-qualified module name? That might be easier to access and be less dependant on the runner. |
Great point! I can't think of a reason this wouldn't work, and doing it this way means that all runners would get the same consistency for free. 🤔 |
Okay, so... reopening? |
What happened
I spotted a failing fuzz test in a CI build, and replicated the failure by running it locally with the same seed:
Then I wanted to narrow down the tests being run to examine what's really going on, which made the failure disappear:
A good colleague of mine pointed out that because seeds are distributed across the entire tests being run, one should use
only
to isolate the test you want to run.Thoughts
only
works, I'd rather be able to run a single test file, because it takes ~15 seconds to runelm-test
on our test suite even against a singleonly
test on top of already compiled code.elm-test
runs speedily.The text was updated successfully, but these errors were encountered: