Skip to content

Commit

Permalink
Enable coverage report for eunit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Nov 13, 2023
1 parent 9c618b6 commit 6c56562
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ct:
else $(RUN) $(REBAR) ct $(REBAR_CT_EXTRA_ARGS); fi)

eunit:
@$(RUN) $(REBAR) eunit
@$(RUN) $(REBAR) eunit $(REBAR_EUNIT_EXTRA_ARGS)

rel: certs configure.out rel/configure.vars.config
. ./configure.out && $(REBAR) as prod release
Expand Down
3 changes: 3 additions & 0 deletions tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ run_small_tests() {
run_eunit_tests() {
tools/print-dots.sh start
tools/print-dots.sh monitor $$
if [ "$COVER_ENABLED" = true ]; then
export REBAR_EUNIT_EXTRA_ARGS="-c"
fi
make eunit
RESULT="$?"
tools/print-dots.sh stop
Expand Down

0 comments on commit 6c56562

Please sign in to comment.