|
|
|
@ -60,7 +60,7 @@ describe('app', () => { |
|
|
|
|
const testConfig = Object.assign({}, config); |
|
|
|
|
|
|
|
|
|
testConfig.testrpcOptions = `--account="${privateKey},${balance}" --port 8777`; |
|
|
|
|
testConfig.dir = './mock', |
|
|
|
|
testConfig.dir = './mock'; |
|
|
|
|
testConfig.norpc = false; |
|
|
|
|
testConfig.port = 8777; |
|
|
|
|
|
|
|
|
@ -79,7 +79,7 @@ describe('app', () => { |
|
|
|
|
const testConfig = Object.assign({}, config); |
|
|
|
|
|
|
|
|
|
testConfig.testCommand = 'mocha --timeout 5000 > /dev/null 2>&1'; |
|
|
|
|
testConfig.dir = './mock', |
|
|
|
|
testConfig.dir = './mock'; |
|
|
|
|
testConfig.norpc = false; |
|
|
|
|
testConfig.port = 8888; |
|
|
|
|
|
|
|
|
@ -98,7 +98,7 @@ describe('app', () => { |
|
|
|
|
const testConfig = Object.assign({}, config); |
|
|
|
|
|
|
|
|
|
testConfig.testCommand = 'node ../test/util/mockTestCommand.js'; |
|
|
|
|
testConfig.dir = './mock', |
|
|
|
|
testConfig.dir = './mock'; |
|
|
|
|
testConfig.norpc = false; |
|
|
|
|
testConfig.port = 8888; |
|
|
|
|
|
|
|
|
@ -118,7 +118,7 @@ describe('app', () => { |
|
|
|
|
|
|
|
|
|
const testConfig = Object.assign({}, config); |
|
|
|
|
|
|
|
|
|
testConfig.dir = './mock', |
|
|
|
|
testConfig.dir = './mock'; |
|
|
|
|
testConfig.norpc = false; |
|
|
|
|
testConfig.port = 8889; |
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ describe('app', () => { |
|
|
|
|
};`;
|
|
|
|
|
|
|
|
|
|
const testConfig = Object.assign({}, config); |
|
|
|
|
testConfig.dir = './mock', |
|
|
|
|
testConfig.dir = './mock'; |
|
|
|
|
testConfig.norpc = false; |
|
|
|
|
testConfig.port = 8555; // Manually inspect that port is actually set to 8999
|
|
|
|
|
|
|
|
|
@ -209,7 +209,7 @@ describe('app', () => { |
|
|
|
|
collectGarbage(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('project uses truffle-config.js: should generate coverage, cleanup and exit(0)', () => {
|
|
|
|
|
it('project uses truffle-config.js: should generate coverage, cleanup and exit(0)', () => { |
|
|
|
|
// Directory should be clean
|
|
|
|
|
assert(pathExists('./coverage') === false, 'should start without: coverage'); |
|
|
|
|
assert(pathExists('./coverage.json') === false, 'should start without: coverage.json'); |
|
|
|
|