egoist/testen

Add flag to run in series

Closed this issue · 4 comments

Libraries and CLIs that write to the filesystem during testing can fail when using testen because testen runs the different node versions in parallel on the same machine.

For example, https://github.com/rocktemplates/rock tests pass when running npm test, but fails when running testen. Running testen -n 6 && testen -n 4 passes.

Could you add a CLI flag to run the different versions in series?

Thanks for reporting this, yep, I think it should be able to run tests in serial too.

@egoist I would be willing to work on this, but I'm not familiar with co. https://github.com/egoist/testen/blob/1.0/testen#L245-L247 is the relevant code.

I added this feature in v2.0.0, just try --sequence or -s

Thanks, works great!