diff --git a/integration/livenet.js b/integration/livenet.js index 8fa7c20a..245b19d5 100644 --- a/integration/livenet.js +++ b/integration/livenet.js @@ -1,7 +1,7 @@ 'use strict'; // 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 bitcore = require('bitcore'); diff --git a/integration/regtest.js b/integration/regtest.js index 31ba40b0..bc313a3b 100644 --- a/integration/regtest.js +++ b/integration/regtest.js @@ -1,7 +1,14 @@ 'use strict'; -// These tests require a fully synced Bitcore Code data directory. -// To run the tests: $ mocha -R spec index.js +// These tests require bitcoind.js Bitcoin Core bindings to be compiled with +// 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 bitcore = require('bitcore');