Comments (4)
Oh I'd just change the API to accept an
Int
instead of aRandom.Seed
Sure, just document why this is the case and that the integer should be 32 random bits, etc. Again in the short-term you can avoid an API change thanks to Wait this is the runner that hasn't been released yet, not Random.Pcg.toJson
.elm-test
itself, so let's make the breaking API change now.
from node-test-runner.
Also I feel like when picking one at random, we should start with the initial time and then do like Random.int 1000 9999
to generate a relatively concise int for a seed that you could quickly holler across a room at a coworker who wants to reproduce what you're seeing.
Four digits seems like a plenty large enough possibility space given that we're not doing crypto or anything, but @mgold would be the expert on that.
from node-test-runner.
As with anything involving reusing or seeds or generating seeds from randomized output, the answer is: theoretically you are compromising the validity of the RNG and you should feel bad; in practice it's probably fine (until you get a really obscure and difficult bug).
I don't think it's worth limiting the 4 billion-ish possibilities to 9000 just to make the seeds easier to shout across the room. I've done similar things with flaky rspecs and I just wind up copying and pasting the seed at one machine.
I'm totally on board with indicating and being able to specify the initial seed, but the opaque type is working against you. With Random.Pcg you can do it by abusing toJson
. If that's not merged into core (as is likely), you might have to rely on toString
.
from node-test-runner.
I just wind up copying and pasting the seed at one machine.
Yeah fair point.
the opaque type is working against you
Oh I'd just change the API to accept an Int
instead of a Random.Seed
from node-test-runner.
Related Issues (20)
- Run a single specific test
- Implement test filtering HOT 2
- Detect when we run tests twice
- Crash when --output is set for `elm-test make` HOT 8
- Unable to install npm package for 0.18.13-beta4 HOT 12
- Erroneously requires indirect dependencies specified for packages during watch HOT 3
- node 10 is eol
- No output for successful test runs HOT 4
- 0.19.1-revision8 Changelog HOT 1
- Running elm-test leaves fish shell in a weird state HOT 3
- Implicitly exposed tests not found if test module contains a character literal with a unicode sequence HOT 1
- Allow running just non-fuzzed tests HOT 1
- Check if the file read/write in the dependency cache can cause issues in the solver HOT 2
- elm-test doesn't work with Yarn 2 HOT 3
- Junit reporter breaks with new error messages of elm-program-test HOT 2
- RuntimeError: unreachable HOT 14
- Print statistics/progress on signal SIGUSR1 (Linux) / SIGINFO (macOS) HOT 1
- Support --watch for "elm-test make"
- Better support for long running tests
- from 0.19.1-revision2 to 0.19.1-revision7 (btu same with 9 and 12) skip some tests running HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-test-runner.