File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,18 @@ recommended to put them in a subdirectory called `playground/` since
90
90
this will be automatically ignored by git and the build process,
91
91
avoiding any undesirable complications.
92
92
93
+ Test coverage
94
+ ~~~~~~~~~~~~~
95
+
96
+ To view test coverage reports, first ensure that
97
+ [`Devel::Cover`](https://metacpan.org/dist/Devel-Cover) is installed.
98
+ Then type `make coverage`. The last lines of the output should
99
+ include something like:
100
+
101
+ HTML output written to /home/user/path/to/stow/cover_db/coverage.html
102
+
103
+ which you can open in a web browser to view the report.
104
+
93
105
Translating Stow
94
106
----------------
95
107
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ check-TESTS:
87
87
dir=$(TESTS_DIR ) ; \
88
88
$(TESTS_ENVIRONMENT ) -MTest::Harness -e ' runtests(@ARGV)' " $$ {dir#./}" /* .t
89
89
90
+ coverage :
91
+ PERL5OPT=-MDevel::Cover $(MAKE ) check-TESTS
92
+ cover
93
+
90
94
$(TESTS_OUT ) :
91
95
mkdir -p $@
92
96
You can’t perform that action at this time.
0 commit comments