Add fast-test and fast-cover npm scripts

Add alternate test and coverage scripts that skips tests that are slow.
This commit is contained in:
Hornwitser committed 2019-08-24 11:25:40 +02:00
1 parent 5a9e2a8825
commit fb2519cb50
3 files changed
+5

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ var generateSSLcert = require("lib/generateSSLcert.js")
describe("generateSSLcert.js(options)", ()=>{
it("Creates a folder with a .crt and .key file in it", async function() {
/* istanbul ignore if */ if (process.env.FAST_TEST) this.skip();
let certPath = "lib/certTestPlsDelete/cert.crt";
let privKeyPath = "lib/certTestPlsDelete/cert.key";
assert(!await fs.exists(certPath)); // if it already exsits, the test might pass because of leftover data (which is bad)