Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ jobs:
run: ./make.sh headers

- name: Test
run: opam exec -- dune runtest --instrument-with bisect_ppx
env:
BISECT_ENABLE: YES
BISECT_FILE: ${{ github.workspace }}/_build/bisect
run: opam exec -- dune runtest --force --instrument-with bisect_ppx

- run: opam exec -- bisect-ppx-report send-to Coveralls
env:
Expand Down
6 changes: 3 additions & 3 deletions docs/developer-guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ To run `bisect_ppx` locally:

1. Install bisect_ppx with `opam install bisect_ppx`.
2. Run `make coverage` to build Goblint with bisect_ppx instrumentation.
3. Run tests with coverage: `dune runtest --instrument-with bisect_ppx` (this will now generate `.coverage` files in various directories).
4. Generate coverage report with `bisect-ppx-report html`.
5. After that the generated `.coverage` files can be removed with `find . -type f -name '*.coverage' -delete`.
3. Run tests with coverage: `mkdir -p _build/coverage ; BISECT_ENABLE=YES BISECT_FILE="$(pwd)/_build/coverage/bisect" dune runtest --force --instrument-with bisect_ppx` (this will generate `.coverage` files into the directory `_build/coverage`).
4. Generate coverage report with `bisect-ppx-report html`.
Note: after that the generated `.coverage` files can be removed (e.g., with `find . -type f -name '*.coverage' -delete` or by deleting `_build/coverage`).
6. The HTML report can be found in the `_coverage` folder.
Loading