aantron / bisect_ppx

Code coverage for OCaml and ReScript
http://aantron.github.io/bisect_ppx/demo/
MIT License
301 stars 60 forks source link

The `--expect DIR` switch requires a trailing slash #426

Open Kakadu opened 1 year ago

Kakadu commented 1 year ago

I was surprised that --expect switch requires a directory with slash to properly check that it is in report. Without a lash it complains. Maybe we can insert this trailing slash automatically? @aantron

✗ bisect-ppx-report html --coverage-path /tmp/zanudacov  --expect src 
Error: expected file 'src' is not included in the report
✗ bisect-ppx-report html --coverage-path /tmp/zanudacov  --expect src/
✗ # OK