aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/erc20/test/global_hooks.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2019-01-22 06:20:33 +0800
committerAmir Bandeali <abandeali1@gmail.com>2019-01-22 13:41:21 +0800
commit0758f231e21e9b9d3c3ca21ea639b0d8d9acf2f1 (patch)
treed5afc5124cd49a361bf282df0255e8b122459373 /contracts/erc20/test/global_hooks.ts
parent9fa86195900383640f382850f6fe0d827d48bb9b (diff)
downloaddexon-0x-contracts-0758f231e21e9b9d3c3ca21ea639b0d8d9acf2f1.tar.gz
dexon-0x-contracts-0758f231e21e9b9d3c3ca21ea639b0d8d9acf2f1.tar.zst
dexon-0x-contracts-0758f231e21e9b9d3c3ca21ea639b0d8d9acf2f1.zip
Split tokens package into erc20 and erc721
Diffstat (limited to 'contracts/erc20/test/global_hooks.ts')
-rw-r--r--contracts/erc20/test/global_hooks.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/contracts/erc20/test/global_hooks.ts b/contracts/erc20/test/global_hooks.ts
new file mode 100644
index 000000000..f8ace376a
--- /dev/null
+++ b/contracts/erc20/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();
+});