diff --git a/.gitignore b/.gitignore
index b0a5c349ca8788ef8e48e8cda18c304b14958156..48fff93d48b2d27c6c2acfe94fc1cef4c11fd5ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 /node_modules/
 /dist/
+/coverage/
+/.idea/
diff --git a/karma.conf.js b/karma.conf.js
index 175280d5d0869a7fe2c98501c3af86ec0499a478..a26274619cfaf8f3ab24fae07c30d44af74239e2 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -16,7 +16,7 @@ module.exports = function (config) {
       clearContext: false // leave Jasmine Spec Runner output visible in browser
     },
     coverageIstanbulReporter: {
-      dir: require('path').join(__dirname, '../../coverage/error-types'),
+      dir: __dirname + '/coverage/error-types',
       reports: ['html', 'lcovonly', 'text-summary'],
       fixWebpackSourcePaths: true
     },
diff --git a/package.json b/package.json
index 5d717e422a147fd54a09590d57c70312e8e1cafe..dc03345a1b25786619bab69fb44bdeb6ec3b34c2 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
   },
   "scripts": {
     "build": "ng build",
-    "test": "ng test",
+    "test": "ng test --code-coverage --no-watch --no-progress",
     "lint": "ng lint",
     "package": "ng-packagr"
   },