Skip to content

Commit

Permalink
use karma-coverage-istanbul-reporter instead of karma-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoschenkel committed Feb 21, 2017
1 parent fa989ba commit 4543ea5
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ before_install:
- typings install
script: node_modules/karma/bin/karma start karma.conf.js --single-run
after_success:
- codeclimate-test-reporter < coverage/report-lcov/lcov.info
- codeclimate-test-reporter < coverage/lcov.info
addons:
code_climate:
repo_token: ae685449cff9c41cc95750ef94f121c59c98d6c783537bff73e26b0afc6f125f
25 changes: 13 additions & 12 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = function(config) {
"es6-shim"
],
files: [
"./test/entry.test.ts",
"./test/**/**/**.test.ts",
{
pattern: '**/*.map',
Expand All @@ -45,19 +44,21 @@ module.exports = function(config) {
"karma-chai",
"karma-sinon",
"karma-es6-shim",
"karma-coverage"
"karma-coverage-istanbul-reporter"
],
reporters: (config.singleRun
? ["dots", "mocha", "coverage"]
: ["dots", "mocha"]),
coverageReporter: {
reporters: (
config.singleRun ?
["dots", "mocha", "coverage-istanbul"] :
["dots", "mocha"]
),
coverageIstanbulReporter: {
reports: ["html", "lcov", "lcovonly", "text-summary"],
dir: "coverage",
reporters: [
{ type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'report-lcov' }
],
instrumenterOptions: {
istanbul: { noCompact: true }
fixWebpackSourcePaths: true,
"report-config": {
html: {
subdir: "html-report"
}
}
},
port: 9876,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"karma-chai": "^0.1.0",
"karma-chai-sinon": "^0.1.5",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-coverage-istanbul-reporter": "^0.2.3",
"karma-es6-shim": "^1.0.0",
"karma-jasmine": "^1.1.0",
"karma-mocha": "^1.3.0",
Expand Down
111 changes: 89 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ anymatch@^1.3.0:
arrify "^1.0.0"
micromatch "^2.1.5"

append-transform@^0.4.0:
version "0.4.0"
resolved "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991"
dependencies:
default-require-extensions "^1.0.0"

aproba@^1.0.3:
version "1.0.4"
resolved "https://registry.npmjs.org/aproba/-/aproba-1.0.4.tgz#2713680775e7614c8ba186c065d4e2e52d1072c0"
Expand Down Expand Up @@ -265,11 +271,11 @@ async-each@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"

async@1.x, async@^1.4.0, async@^1.5.2:
async@1.x, async@^1.4.0, async@^1.4.2, async@^1.5.2:
version "1.5.2"
resolved "https://registry.npmjs.org/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"

async@^2.1.2:
async@^2.1.2, async@^2.1.4:
version "2.1.4"
resolved "https://registry.npmjs.org/async/-/async-2.1.4.tgz#2d2160c7788032e4dd6cbe2502f1f9a2c8f6cde4"
dependencies:
Expand Down Expand Up @@ -1045,7 +1051,7 @@ date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"

dateformat@^1.0.11, dateformat@^1.0.6:
dateformat@^1.0.11:
version "1.0.12"
resolved "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz#9f124b67594c937ff706932e4a642cca8dbbfee9"
dependencies:
Expand Down Expand Up @@ -1102,6 +1108,12 @@ deep-is@~0.1.3:
version "0.1.3"
resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"

default-require-extensions@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8"
dependencies:
strip-bom "^2.0.0"

define-properties@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
Expand Down Expand Up @@ -1641,6 +1653,13 @@ filename-regex@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775"

fileset@^2.0.2:
version "2.0.3"
resolved "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0"
dependencies:
glob "^7.0.3"
minimatch "^3.0.3"

fill-range@^2.1.0:
version "2.2.3"
resolved "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723"
Expand Down Expand Up @@ -1904,7 +1923,7 @@ glob@7.0.5:
once "^1.3.0"
path-is-absolute "^1.0.0"

glob@7.1.1, glob@^7.0.0, glob@^7.0.5, glob@^7.1.1, glob@~7.1.1:
glob@7.1.1, glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@~7.1.1:
version "7.1.1"
resolved "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
dependencies:
Expand Down Expand Up @@ -2143,7 +2162,7 @@ handle-thing@^1.2.4:
version "1.2.5"
resolved "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz#fd7aad726bf1a5fd16dfc29b2f7a6601d27139c4"

handlebars@4.0.5, handlebars@^4.0.1:
handlebars@4.0.5, handlebars@^4.0.1, handlebars@^4.0.3:
version "4.0.5"
resolved "https://registry.npmjs.org/handlebars/-/handlebars-4.0.5.tgz#92c6ed6bb164110c50d4d8d0fbddc70806c6f8e7"
dependencies:
Expand Down Expand Up @@ -2597,6 +2616,22 @@ isstream@~0.1.2:
version "0.1.2"
resolved "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"

istanbul-api@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.1.1.tgz#d36e2f1560d1a43ce304c4ff7338182de61c8f73"
dependencies:
async "^2.1.4"
fileset "^2.0.2"
istanbul-lib-coverage "^1.0.0"
istanbul-lib-hook "^1.0.0"
istanbul-lib-instrument "^1.3.0"
istanbul-lib-report "^1.0.0-alpha.3"
istanbul-lib-source-maps "^1.1.0"
istanbul-reports "^1.0.0"
js-yaml "^3.7.0"
mkdirp "^0.5.1"
once "^1.4.0"

istanbul-instrumenter-loader@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/istanbul-instrumenter-loader/-/istanbul-instrumenter-loader-2.0.0.tgz#e5492900ab0bba835efa8024cb00be9b3eea2700"
Expand All @@ -2606,11 +2641,17 @@ istanbul-instrumenter-loader@^2.0.0:
loader-utils "^0.2.16"
object-assign "^4.1.0"

istanbul-lib-coverage@^1.0.0:
istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.0.0-alpha, istanbul-lib-coverage@^1.0.0-alpha.0:
version "1.0.1"
resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.1.tgz#f263efb519c051c5f1f3343034fc40e7b43ff212"

istanbul-lib-instrument@^1.1.3:
istanbul-lib-hook@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.0.0.tgz#fc5367ee27f59268e8f060b0c7aaf051d9c425c5"
dependencies:
append-transform "^0.4.0"

istanbul-lib-instrument@^1.1.3, istanbul-lib-instrument@^1.3.0:
version "1.4.2"
resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.4.2.tgz#0e2fdfac93c1dabf2e31578637dc78a19089f43e"
dependencies:
Expand All @@ -2622,7 +2663,33 @@ istanbul-lib-instrument@^1.1.3:
istanbul-lib-coverage "^1.0.0"
semver "^5.3.0"

istanbul@0.4.5, istanbul@^0.4.0, istanbul@^0.4.3, istanbul@^0.4.5:
istanbul-lib-report@^1.0.0-alpha.3:
version "1.0.0-alpha.3"
resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.0.0-alpha.3.tgz#32d5f6ec7f33ca3a602209e278b2e6ff143498af"
dependencies:
async "^1.4.2"
istanbul-lib-coverage "^1.0.0-alpha"
mkdirp "^0.5.1"
path-parse "^1.0.5"
rimraf "^2.4.3"
supports-color "^3.1.2"

istanbul-lib-source-maps@^1.1.0:
version "1.1.0"
resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.1.0.tgz#9d429218f35b823560ea300a96ff0c3bbdab785f"
dependencies:
istanbul-lib-coverage "^1.0.0-alpha.0"
mkdirp "^0.5.1"
rimraf "^2.4.4"
source-map "^0.5.3"

istanbul-reports@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.0.1.tgz#9a17176bc4a6cbebdae52b2f15961d52fa623fbc"
dependencies:
handlebars "^4.0.3"

istanbul@0.4.5, istanbul@^0.4.3, istanbul@^0.4.5:
version "0.4.5"
resolved "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b"
dependencies:
Expand Down Expand Up @@ -2660,7 +2727,7 @@ js-tokens@^3.0.0:
version "3.0.1"
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"

js-yaml@3.x:
js-yaml@3.x, js-yaml@^3.7.0:
version "3.7.0"
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80"
dependencies:
Expand Down Expand Up @@ -2738,15 +2805,11 @@ karma-chrome-launcher@^2.0.0:
fs-access "^1.0.0"
which "^1.2.1"

karma-coverage@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/karma-coverage/-/karma-coverage-1.1.1.tgz#5aff8b39cf6994dc22de4c84362c76001b637cf6"
karma-coverage-istanbul-reporter@^0.2.3:
version "0.2.3"
resolved "https://registry.npmjs.org/karma-coverage-istanbul-reporter/-/karma-coverage-istanbul-reporter-0.2.3.tgz#11f1be9cfa93755a77bac39ab16e315a7100b5c5"
dependencies:
dateformat "^1.0.6"
istanbul "^0.4.0"
lodash "^3.8.0"
minimatch "^3.0.0"
source-map "^0.5.1"
istanbul-api "^1.1.1"

karma-es6-shim@^1.0.0:
version "1.0.0"
Expand Down Expand Up @@ -3186,7 +3249,7 @@ minimalistic-assert@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3"

"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2:
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3:
version "3.0.3"
resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774"
dependencies:
Expand Down Expand Up @@ -3442,7 +3505,7 @@ on-headers@~1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7"

once@1.x, once@^1.3.0:
once@1.x, once@^1.3.0, once@^1.4.0:
version "1.4.0"
resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
dependencies:
Expand Down Expand Up @@ -3606,6 +3669,10 @@ path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"

path-parse@^1.0.5:
version "1.0.5"
resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"

path-to-regexp@0.1.7:
version "0.1.7"
resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
Expand Down Expand Up @@ -4128,7 +4195,7 @@ right-align@^0.1.1:
dependencies:
align-text "^0.1.1"

rimraf@2, rimraf@^2.6.0:
rimraf@2, rimraf@^2.4.3, rimraf@^2.4.4, rimraf@^2.6.0:
version "2.6.0"
resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.6.0.tgz#89b8a0fe432b9ff9ec9a925a00b6cdb3a91bbada"
dependencies:
Expand Down Expand Up @@ -4375,7 +4442,7 @@ source-map-support@^0.4.0:
dependencies:
source-map "^0.5.3"

source-map@0.5.x, source-map@>=0.5.6, source-map@^0.5.0, source-map@^0.5.1, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3:
source-map@0.5.x, source-map@>=0.5.6, source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3:
version "0.5.6"
resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"

Expand Down Expand Up @@ -4556,7 +4623,7 @@ subcommand@^2.0.3:
minimist "^1.2.0"
xtend "^4.0.0"

supports-color@3.1.2, supports-color@^3.1.0, supports-color@^3.1.1:
supports-color@3.1.2, supports-color@^3.1.0, supports-color@^3.1.1, supports-color@^3.1.2:
version "3.1.2"
resolved "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5"
dependencies:
Expand Down

0 comments on commit 4543ea5

Please sign in to comment.