aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/multisig
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-04 19:10:03 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-12-04 19:10:03 +0800
commit672a4b93ba2d3e218b7ec7e0eba53e82349ac432 (patch)
treec9f47237455ea61ef24c37a67c19c735b35f0402 /contracts/multisig
parent1785769916d47cf5810ad48d2d03fcccb508f44c (diff)
downloaddexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.tar
dexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.tar.gz
dexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.tar.bz2
dexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.tar.lz
dexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.tar.xz
dexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.tar.zst
dexon-sol-tools-672a4b93ba2d3e218b7ec7e0eba53e82349ac432.zip
Don't start the provider by default
Diffstat (limited to 'contracts/multisig')
-rw-r--r--contracts/multisig/test/global_hooks.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/contracts/multisig/test/global_hooks.ts b/contracts/multisig/test/global_hooks.ts
new file mode 100644
index 000000000..68eb4f8d5
--- /dev/null
+++ b/contracts/multisig/test/global_hooks.ts
@@ -0,0 +1,19 @@
+import { env, EnvVars } from '@0x/dev-utils';
+
+import { coverage, profiler, provider } from '@0x/contracts-test-utils';
+
+before('start web3 provider engine', () => {
+ provider.start();
+});
+
+after('generate coverage report', async () => {
+ if (env.parseBoolean(EnvVars.SolidityCoverage)) {
+ const coverageSubprovider = coverage.getCoverageSubproviderSingleton();
+ await coverageSubprovider.writeCoverageAsync();
+ }
+ if (env.parseBoolean(EnvVars.SolidityProfiler)) {
+ const profilerSubprovider = profiler.getProfilerSubproviderSingleton();
+ await profilerSubprovider.writeProfilerOutputAsync();
+ }
+ provider.stop();
+});