Skip to content

Commit

Permalink
Merge pull request #4167 from esl/eunit-coverage
Browse files Browse the repository at this point in the history
Enable coverage report for eunit
  • Loading branch information
arcusfelis authored Nov 14, 2023
2 parents 9c618b6 + 6c56562 commit fc6ce64
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 fc6ce64

Please sign in to comment.