Skip to content

Commit

Permalink
Merge pull request #1361 from sjinks/coverage
Browse files Browse the repository at this point in the history
Fix code coverage generation
  • Loading branch information
Phalcon committed Oct 10, 2013
2 parents 5442611 + badcc31 commit 536744d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/Makefile.frag
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ unit-tests: all
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
NO_INTERACTION=1 TEST_PHP_USER="$(srcdir)/tests/" $(MAKE) test && \
$(MAKE) install && \
(cd "$(top_srcdir)/../"; $(PHP_EXECUTABLE) unit-tests/manual-unit.php) \
(cd "$(top_srcdir)/../"; $(PHP_EXECUTABLE) $(phpenv which php) ./unit-tests/ci/phpunit.php -c unit-tests/phpunit.xml) \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi

coverage: unit-tests clean-coverage
$(LCOV) --directory . --capture --base-directory=. --output-file .coverage
$(GENHTML) --legend --output-directory coverage/ --title "Phalcon code coverage" .coverage
$(LCOV) --quiet --directory . --capture --base-directory=. --output-file .coverage
$(GENHTML) --quiet --legend --output-directory coverage/ --title "Phalcon code coverage" .coverage

0 comments on commit 536744d

Please sign in to comment.