Main module for a test runner worker.
Ports(ish) required by the worker program to function.
They aren't exactly ports (sendResult isn't a valid port for example)
but will basically be wrapped by an actual port in the main Elm caller module.
The initial random seed and the number of fuzz runs are passed as flags.
Main model. Exposed for usage in type definitions.
Internal messages.
Create a test runner worker. Some specific ports(ish) are required as arguments, as well as the "master" test concatenating all tests (CF
SeededRunners.fromTest).The main Elm module calling this one will typically look like the example below. In that code, {{ user_imports }} and {{ tests }} are to be replaced by the list of needed imports from user code and the list of tests to run.
It can later be spawned as a Node worker with a tiny bit of JS similar to: