parallel icon indicating copy to clipboard operation
parallel copied to clipboard

test coverage problem

Open voku opened this issue 5 years ago • 1 comments

First thanks for this simple to use solution for parallel processing php stuff. :) I only wanted to know if I can fix such test coverage drop ⇾ 80% to 14%

test coverage: https://coveralls.io/builds/30873469

commit: https://github.com/voku/Simple-PHP-Code-Parser/commit/c0abd3d816c80372a06f0689a312b2689f226942

voku avatar May 18 '20 23:05 voku

Unfortunately no, since any code run in another process/thread does not get counted toward test coverage.

@kelunik Do you know of any way we can count those lines? We could have a context that doesn't run in another process/thread for testing, but I'd really like to avoid "faking it."

trowski avatar Jul 16 '20 14:07 trowski