OCaml: Add coverage reporting
This commit is contained in:
parent
ac3dbe4d30
commit
db0fba664c
5 changed files with 29 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ocaml/_coverage
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
(depends
|
(depends
|
||||||
(ocaml (>= 5.3.0))
|
(ocaml (>= 5.3.0))
|
||||||
(dune (>= 3.17.2))
|
(dune (>= 3.17.2))
|
||||||
|
(bisect_ppx (and :dev (>= 2.5.0)))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
25
ocaml/justfile
Normal file
25
ocaml/justfile
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
build :
|
||||||
|
dune build
|
||||||
|
|
||||||
|
test :
|
||||||
|
dune build
|
||||||
|
dune test
|
||||||
|
|
||||||
|
format :
|
||||||
|
dune fmt; dune promote
|
||||||
|
|
||||||
|
check-format :
|
||||||
|
dune build fmt
|
||||||
|
|
||||||
|
cover :
|
||||||
|
find . -name '*.coverage' -exec rm -v '{}' ';'
|
||||||
|
dune build
|
||||||
|
dune runtest --instrument-with bisect_ppx --force
|
||||||
|
bisect-ppx-report html
|
||||||
|
bisect-ppx-report summary
|
||||||
|
|
||||||
|
clean :
|
||||||
|
dune clean
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
(library
|
(library
|
||||||
(name tori)
|
(name tori)
|
||||||
(libraries unix)
|
(libraries unix)
|
||||||
|
(instrumentation (backend bisect_ppx))
|
||||||
)
|
)
|
||||||
|
|
||||||
(include_subdirs qualified)
|
(include_subdirs qualified)
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ doc: "https://tori.jutty.dev/docs"
|
||||||
depends: [
|
depends: [
|
||||||
"ocaml" {>= "5.3.0"}
|
"ocaml" {>= "5.3.0"}
|
||||||
"dune" {>= "3.17" & >= "3.17.2"}
|
"dune" {>= "3.17" & >= "3.17.2"}
|
||||||
|
"bisect_ppx" {dev & >= "2.5.0"}
|
||||||
"odoc" {with-doc}
|
"odoc" {with-doc}
|
||||||
]
|
]
|
||||||
build: [
|
build: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue