Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage report with bisect_ppx #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ release: update_next_tag
opam publish https://github.com/c-cube/qcheck/archive/$(VERSION).tar.gz
@echo "review the release, then type 'opam publish submit qcheck.$(VERSION)/'"

coverage-report:
@dune runtest -f --instrument-with bisect_ppx
bisect-ppx-report html
@echo "Report should be available in file://$(shell pwd)/_coverage/index.html"

coverage-report-summary:
@dune runtest -f --instrument-with bisect_ppx
bisect-ppx-report summary

watch:
@dune build @all -w
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(lang dune 2.2)
(lang dune 2.7)
(name qcheck)
3 changes: 2 additions & 1 deletion ppx_deriving_qcheck.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ maintainer: "[email protected]"
author: [ "the qcheck contributors" ]

depends: [
"dune" {>= "2.8.0"}
"dune" {>= "2.7.0"}
"ocaml" {>= "4.08.0"}
"qcheck" {>= "0.17"}
"ppxlib" {>= "0.22.0"}
"odoc" {with-doc}
"bisect_ppx" {with-test}
"alcotest" {with-test & >= "1.4.0" }
]

Expand Down
3 changes: 2 additions & 1 deletion qcheck-alcotest.opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ build: [
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"dune" { >= "2.2" }
"dune" { >= "2.7" }
"base-bytes"
"base-unix"
"qcheck-core" { = version }
"alcotest"
"odoc" {with-doc}
"bisect_ppx" {with-test}
"ocaml" {>= "4.08.0"}
]
dev-repo: "git+https://github.com/c-cube/qcheck.git"
Expand Down
3 changes: 2 additions & 1 deletion qcheck-core.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ build: [
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"dune" { >= "2.2" }
"dune" { >= "2.7" }
"base-bytes"
"base-unix"
"alcotest" {with-test}
"odoc" {with-doc}
"bisect_ppx" {with-test}
"ocaml" {>= "4.08.0"}
]
dev-repo: "git+https://github.com/c-cube/qcheck.git"
Expand Down
3 changes: 2 additions & 1 deletion qcheck-ounit.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ build: [
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"dune" { >= "2.2" }
"dune" { >= "2.7" }
"base-bytes"
"base-unix"
"qcheck-core" { = version }
"ounit2"
"odoc" {with-doc}
"bisect_ppx" {with-test}
"ocaml" {>= "4.08.0"}
]
dev-repo: "git+https://github.com/c-cube/qcheck.git"
Expand Down
3 changes: 2 additions & 1 deletion qcheck.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ build: [
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"dune" { >= "2.2" }
"dune" { >= "2.7" }
"base-bytes"
"base-unix"
"qcheck-core" { = version }
"qcheck-ounit" { = version }
"alcotest" {with-test}
"odoc" {with-doc}
"bisect_ppx" {with-test}
"ocaml" {>= "4.08.0"}
]
dev-repo: "git+https://github.com/c-cube/qcheck.git"
Expand Down
1 change: 1 addition & 0 deletions src/alcotest/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(name qcheck_alcotest)
(public_name qcheck-alcotest)
(wrapped false)
(instrumentation (backend bisect_ppx))
(libraries unix bytes qcheck-core qcheck-core.runner alcotest)
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
)
1 change: 1 addition & 0 deletions src/core/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(name qcheck_core)
(public_name qcheck-core)
(wrapped false)
(instrumentation (backend bisect_ppx))
(libraries unix bytes)
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
)
1 change: 1 addition & 0 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(wrapped false)
(modules QCheck_runner)
(synopsis "compatibility library for qcheck")
(instrumentation (backend bisect_ppx))
(libraries qcheck-core qcheck-core.runner qcheck-ounit))

(documentation
Expand Down
1 change: 1 addition & 0 deletions src/ounit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(name qcheck_ounit)
(public_name qcheck-ounit)
(wrapped false)
(instrumentation (backend bisect_ppx))
(libraries unix bytes qcheck-core qcheck-core.runner ounit2)
(flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
)
1 change: 1 addition & 0 deletions src/ppx_deriving_qcheck/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(library
(name ppx_deriving_qcheck)
(public_name ppx_deriving_qcheck)
(instrumentation (backend bisect_ppx))
(libraries ppxlib)
(preprocess (pps ppxlib.metaquot))
(ppx_runtime_libraries qcheck-core)
Expand Down
1 change: 1 addition & 0 deletions src/runner/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(name qcheck_runner)
(public_name qcheck-core.runner)
(wrapped false)
(instrumentation (backend bisect_ppx))
(libraries qcheck-core)
(flags :standard -warn-error -a+8 -safe-string)
)