aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/erc721/test/global_hooks.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-29 00:26:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-29 00:26:13 +0800
commit141ac0ca0be15602a1bcf466e873134e084f30c1 (patch)
treef0e08db40c46e8c671a99231b645365747a8073f /contracts/erc721/test/global_hooks.ts
parent0c12128f64f7d9a8de6088e98c2e638533d6f5bf (diff)
parent25e42c0ad47e9ec06e474cd12a488ae837660302 (diff)
downloaddexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.tar
dexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.tar.gz
dexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.tar.bz2
dexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.tar.lz
dexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.tar.xz
dexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.tar.zst
dexon-0x-contracts-141ac0ca0be15602a1bcf466e873134e084f30c1.zip
Merge development
Diffstat (limited to 'contracts/erc721/test/global_hooks.ts')
-rw-r--r--contracts/erc721/test/global_hooks.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/contracts/erc721/test/global_hooks.ts b/contracts/erc721/test/global_hooks.ts
new file mode 100644
index 000000000..f8ace376a
--- /dev/null
+++ b/contracts/erc721/test/global_hooks.ts
@@ -0,0 +1,17 @@
+import { env, EnvVars } from '@0x/dev-utils';
+
+import { coverage, profiler, provider } from '@0x/contracts-test-utils';
+before('start web3 provider', () => {
+ 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();
+});