aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/index.js
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2017-09-13 02:30:23 +0800
committerGitHub <noreply@github.com>2017-09-13 02:30:23 +0800
commit8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6 (patch)
tree2c9401f6c52c5522e11af409f59572f607d0b260 /test/integration/index.js
parent08f227607ae4a9c476ebac4218c7573d53f90697 (diff)
parent22c7049f6c195e0b3775a1aa78f92fdbe2ac2559 (diff)
downloadtangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.tar
tangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.tar.gz
tangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.tar.bz2
tangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.tar.lz
tangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.tar.xz
tangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.tar.zst
tangerine-wallet-browser-8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6.zip
Merge pull request #2069 from MetaMask/integration-tests-fix2
Integration test improvements
Diffstat (limited to 'test/integration/index.js')
-rw-r--r--test/integration/index.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/test/integration/index.js b/test/integration/index.js
index e089fc39b..144303dbb 100644
--- a/test/integration/index.js
+++ b/test/integration/index.js
@@ -1,5 +1,6 @@
const fs = require('fs')
const path = require('path')
+const pump = require('pump')
const browserify = require('browserify')
const tests = fs.readdirSync(path.join(__dirname, 'lib'))
const bundlePath = path.join(__dirname, 'bundle.js')
@@ -9,11 +10,17 @@ const b = browserify()
const writeStream = fs.createWriteStream(bundlePath)
tests.forEach(function (fileName) {
- b.add(path.join(__dirname, 'lib', fileName))
+ const filePath = path.join(__dirname, 'lib', fileName)
+ console.log(`bundling test "${filePath}"`)
+ b.add(filePath)
})
-b.bundle()
-.pipe(writeStream)
-.on('error', (err) => {
- throw err
-})
+pump(
+ b.bundle(),
+ writeStream,
+ (err) => {
+ if (err) throw err
+ console.log(`Integration test build completed: "${bundlePath}"`)
+ process.exit(0)
+ }
+) \ No newline at end of file