Skip to content

Commit

Permalink
Build: don't enable Bisect by default
Browse files Browse the repository at this point in the history
Resolves #138.
  • Loading branch information
aantron committed May 8, 2018
1 parent 27a1480 commit 94f9f5a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
9 changes: 6 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ The intended response to this is:
The odoc repo is set up for coverage analysis. This is most useful if you're
writing new tests, and want to know what they are actually touching. To use it,
1. Run `make coverage`. This will run the tests as normal, except at the end you
1. Run `make clean` once, before beginning to work with coverage. This rebuilds
odoc with Bisect_ppx linked in.
2. Run `make coverage`. This will run the tests as normal, except at the end you
will get a message like
```
Expand All @@ -177,9 +180,9 @@ writing new tests, and want to know what they are actually touching. To use it,
"accidentally" by tests that are checking other properties, however, in which
case coverage analysis will not be very useful :)
2. Write new tests.
3. Write new tests.
3. Check coverage again.
4. Check coverage again.
<br/>
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ BISECT_FILES_PATTERN := _build/default/test/*/bisect*.out
.PHONY : coverage
coverage :
find . -name 'bisect*.out' | xargs rm -f
jbuilder build @test/parser/runtest --dev --no-buffer -j 1 --force
jbuilder build @test/html/runtest --dev --no-buffer -j 1 --force
BISECT_ENABLE=yes \
jbuilder build @test/parser/runtest --dev --no-buffer -j 1 --force
BISECT_ENABLE=yes \
jbuilder build @test/html/runtest --dev --no-buffer -j 1 --force
@bisect-ppx-report \
-I _build/default/ -html $(COVERAGE)/ \
-text - -summary-only \
Expand Down
2 changes: 1 addition & 1 deletion odoc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ depends: [
# Development dependencies. These should be removed in opam files sent to the
# opam repo.
"alcotest" {>= "0.8.3"}
"bisect_ppx"
"bisect_ppx" {>= "1.3.0"}
"lambdasoup"
"ocamlfind"
"sexplib"
Expand Down
2 changes: 1 addition & 1 deletion src/html/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

(library
((name html)
(preprocess (pps (bisect_ppx)))
(preprocess (pps (bisect_ppx -conditional)))
(libraries (model tyxml))))
2 changes: 1 addition & 1 deletion src/parser/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

(library
((name parser_)
(preprocess (pps (bisect_ppx)))
(preprocess (pps (bisect_ppx -conditional)))
(libraries (model astring))))

0 comments on commit 94f9f5a

Please sign in to comment.