mocha-parallel-tests icon indicating copy to clipboard operation
mocha-parallel-tests copied to clipboard

Grep is working inefficient for test cases with a large number of files

Open 1999 opened this issue 7 years ago • 0 comments

@createthis in #203

I do notice that this feature seems fairly inefficient with 1100+ tests spread out amongst 93 files. I get a lot of one line outputs and it takes much longer than a regular mocha run. I assume this is because it is loading mocha in a separate process for each file, then grepping, and finally returning and compiling all of the results into the output. An optimization might be to pre-grep the files and only spawn processes for files that appear to have matches.

1999 avatar Nov 02 '18 21:11 1999