Skip to content

Commit

Permalink
drop jsoncov/htmlcov reporters; closes #2356
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 7, 2016
1 parent 749cbd3 commit b47835b
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 656 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
coverage.html
lib-cov
.DS_Store
node_modules
test-outputs
Expand Down
17 changes: 2 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,13 @@ mocha.js: $(SRC) $(SUPPORT)
@$(BROWSERIFY) ./browser-entry \
--ignore 'fs' \
--ignore 'glob' \
--ignore 'jade' \
--ignore 'path' \
--ignore 'supports-color' \
--exclude './lib-cov/mocha' > $@
--ignore 'supports-color' > $@

clean:
@printf "==> [Clean]\n"
rm -f mocha.js
rm -rf test-outputs
rm -rf lib-cov
rm -f coverage.html

test-cov: lib-cov
@printf "==> [Test :: Coverage]\n"
@COV=1 $(MAKE) test REPORTER=html-cov > coverage.html

lib-cov:
@printf "==> [Coverage]\n"
@rm -fr ./$@
@jscoverage lib $@

lint:
@printf "==> [Test :: Lint]\n"
Expand Down Expand Up @@ -204,4 +191,4 @@ tm:
@printf "==> [TM]\n"
@open editors/$(TM_BUNDLE)

.PHONY: test-cov test-jsapi test-compilers watch test test-node test-bdd test-tdd test-qunit test-exports test-unit test-integration non-tty tm clean test-browser test-browser-unit test-browser-bdd test-browser-qunit test-browser-tdd test-browser-exports lint test-only test-global-only
.PHONY: test-jsapi test-compilers watch test test-node test-bdd test-tdd test-qunit test-exports test-unit test-integration non-tty tm clean test-browser test-browser-unit test-browser-bdd test-browser-qunit test-browser-tdd test-browser-exports lint test-only test-global-only
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = process.env.COV
? require('./lib-cov/mocha')
: require('./lib/mocha');
'use strict';

module.exports = require('./lib/mocha');
2 changes: 0 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ module.exports = function(config) {
debug: true,
configure: function configure(b) {
b.ignore('glob')
.ignore('pug')
.ignore('supports-color')
.exclude('./lib-cov/mocha')
.on('bundled', function(err, content) {
if (!err && bundleDirpath) {
// write bundle to directory for debugging
Expand Down
56 changes: 0 additions & 56 deletions lib/reporters/html-cov.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/reporters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ exports.XUnit = exports.xunit = require('./xunit');
exports.Markdown = exports.markdown = require('./markdown');
exports.Progress = exports.progress = require('./progress');
exports.Landing = exports.landing = require('./landing');
exports.JSONCov = exports['json-cov'] = require('./json-cov');
exports.HTMLCov = exports['html-cov'] = require('./html-cov');
exports.JSONStream = exports['json-stream'] = require('./json-stream');
152 changes: 0 additions & 152 deletions lib/reporters/json-cov.js

This file was deleted.

51 changes: 0 additions & 51 deletions lib/reporters/templates/coverage.pug

This file was deleted.

13 changes: 0 additions & 13 deletions lib/reporters/templates/menu.pug

This file was deleted.

34 changes: 0 additions & 34 deletions lib/reporters/templates/script.html

This file was deleted.

Loading

0 comments on commit b47835b

Please sign in to comment.