Added comments to test files and guard for environment variables.
This commit is contained in:
parent
2abb0cc393
commit
73b359425d
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// These tests require a fully synced Bitcore Code data directory.
|
// These tests require a fully synced Bitcore Code data directory.
|
||||||
// To run the tests: $ mocha -R spec index.js
|
// To run the tests: $ mocha -R spec livenet.js
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
var bitcore = require('bitcore');
|
var bitcore = require('bitcore');
|
||||||
|
|||||||
@ -1,7 +1,14 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// These tests require a fully synced Bitcore Code data directory.
|
// These tests require bitcoind.js Bitcoin Core bindings to be compiled with
|
||||||
// To run the tests: $ mocha -R spec index.js
|
// the environment variable BITCOINDJS_ENV=test. This enables the use of regtest
|
||||||
|
// functionality by including the wallet in the build.
|
||||||
|
// To run the tests: $ mocha -R spec integration/regtest.js
|
||||||
|
|
||||||
|
if (process.env.BITCOINDJS_ENV !== 'test') {
|
||||||
|
console.log('Please set the environment variable BITCOINDJS_ENV=test and make sure bindings are compiled for testing');
|
||||||
|
process.exit();
|
||||||
|
}
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
var bitcore = require('bitcore');
|
var bitcore = require('bitcore');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user