Add flag to run in series
Closed this issue · 4 comments
RyanZim commented
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?
egoist commented
Thanks for reporting this, yep, I think it should be able to run tests in serial too.
RyanZim commented
@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.
egoist commented
I added this feature in v2.0.0
, just try --sequence
or -s
RyanZim commented
Thanks, works great!