From a0d5eb18a001724c7683a7328cad43da7c2aedcb Mon Sep 17 00:00:00 2001 From: muxator Date: Sat, 28 Jul 2018 03:33:55 +0200 Subject: [PATCH] tests: introduce istanbul.js to check code coverage see: https://istanbul.js.org --- src/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index 68717b95a..ff5fa4eb9 100644 --- a/src/package.json +++ b/src/package.json @@ -63,6 +63,7 @@ }, "devDependencies": { "mocha": "5.2.0", + "nyc": "^12.0.2", "supertest": "3.0.0", "wd": "1.6.1" }, @@ -75,7 +76,7 @@ "url": "http://github.com/ether/etherpad-lite.git" }, "scripts": { - "test": "mocha --timeout 5000 ../tests/backend/specs/api" + "test": "nyc mocha --timeout 5000 ../tests/backend/specs/api" }, "version": "1.6.6", "license": "Apache-2.0"