From 8b90ed61058bc2c51e325ad8b116390413ff930b Mon Sep 17 00:00:00 2001 From: Sam Spilsbury Date: Wed, 17 Jun 2015 06:46:08 +0800 Subject: eos-coverage: Add run_coverage.coverage "test" This test automatically generates a coverage report at the completion of all other tests. It exists as a pseudo-test which depends on the completion of every other test. Effectively, coverage reports are now generated automatically when --enable-coverage is specified, though you can also run make coverage-cobertura and make coverage-genhtml to update them otherwise. The burden on packages is that they must add .coverage to TEST_EXTENSIONS and add run_coverage.coverage to TESTS. [endlessm/eos-sdk#3303] --- test/Makefile.am.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/Makefile.am.inc') diff --git a/test/Makefile.am.inc b/test/Makefile.am.inc index d927da8..bfc0a11 100644 --- a/test/Makefile.am.inc +++ b/test/Makefile.am.inc @@ -62,10 +62,11 @@ EXTRA_DIST += \ TESTS = \ test/endless/run-tests \ $(javascript_tests) \ + run_coverage.coverage \ $(NULL) JS_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(top_srcdir)/test/run-with-dbus --session $(SHELL) $(top_srcdir)/tap-driver.sh JS_LOG_DRIVER_FLAGS = --comments -TEST_EXTENSIONS = .js +TEST_EXTENSIONS = .js .coverage JS_LOG_COMPILER = jasmine AM_JS_LOG_FLAGS = \ --include-path=$(top_srcdir)/webhelper \ -- cgit v1.2.3