Commit graph

2 commits

Author SHA1 Message Date
Simon Cruanes
115b6276a3 Use instrumentation stanza for CBOR (cleaner approach)
Changed CBOR from 'pps bisect_ppx' to 'instrumentation (backend bisect_ppx)'
which is dune's recommended approach for coverage when not using custom
preprocessing.

Benefits:
- Cleaner dune syntax
- Use --instrument-with bisect_ppx flag (no env vars needed)
- Coverage files auto-managed in _build
- More idiomatic dune

Updated documentation to reflect new usage:
  dune runtest --instrument-with bisect_ppx
  bisect-ppx-report summary --coverage-path=_build

Core library still uses 'pps bisect_ppx' due to per-module preprocessing
requirements (cpp.exe for 3 modules).
2026-02-08 12:25:58 +00:00
Simon Cruanes
862502050c Add coverage instrumentation documentation and initial results
Document the per-module preprocessing solution for coverage.

Initial CBOR coverage: 87.50% (203/232 points)
- RFC 7049/8949 test vectors
- Property-based roundtrip tests
- Edge case tests

Coverage collection working on:
- 100% of CBOR module
- ~93% of core modules (41/44, excluding cpp-dependent modules)

See COVERAGE_SETUP.md for usage instructions.
2026-02-08 05:53:52 +00:00