From 6de8846abf3479446cf1b743bfb1eea53a1ed6c2 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Thu, 30 Mar 2017 11:49:41 -0700 Subject: [PATCH] Remove silence to debug CI failure, lengthen timeout, npm bin --- exec.js | 2 ++ package.json | 8 +++++--- test/run.js | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/exec.js b/exec.js index 010317c..18fba8e 100644 --- a/exec.js +++ b/exec.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + const shell = require('shelljs'); const fs = require('fs'); const path = require('path'); diff --git a/package.json b/package.json index bcabc74..b80fe8b 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,15 @@ "name": "solcover", "version": "0.0.1", "description": "", - "main": "runCoveredTests.js", + "bin": { + "solcover": "./exec.js" + }, "directories": { "test": "test" }, "scripts": { - "test": "mocha --timeout 30000", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --timeout 30000" + "test": "mocha --timeout 60000", + "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --timeout 60000" }, "author": "", "license": "ISC", diff --git a/test/run.js b/test/run.js index 5acc748..cf0cf9c 100644 --- a/test/run.js +++ b/test/run.js @@ -15,7 +15,7 @@ function collectGarbage() { describe('run', () => { let port = 8555; let testrpcProcess = null; - let script = `node ./exec.js --dir "./mock" --port ${port} --testing --silent`; // --silent + let script = `node ./exec.js --dir "./mock" --port ${port} --testing`; // --silent let launchTestRpc = false; before(() => { @@ -30,7 +30,7 @@ describe('run', () => { // exec actually works. if (launchTestRpc) { port = 8557; - script = `node ./exec.js --dir "./mock" --port ${port} --norpc --testing --silent`; // --silent + script = `node ./exec.js --dir "./mock" --port ${port} --norpc --testing`; // --silent const command = `./node_modules/ethereumjs-testrpc/bin/testrpc --gasLimit 0xfffffffffff --port ${port}`; testrpcProcess = childprocess.exec(command); launchTestRpc = false;