aboutsummaryrefslogtreecommitdiffstats
path: root/packages/metacoin/test/global_hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/metacoin/test/global_hooks.ts')
-rw-r--r--packages/metacoin/test/global_hooks.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/metacoin/test/global_hooks.ts b/packages/metacoin/test/global_hooks.ts
new file mode 100644
index 000000000..509dc6837
--- /dev/null
+++ b/packages/metacoin/test/global_hooks.ts
@@ -0,0 +1,10 @@
+import { env, EnvVars } from '@0xproject/dev-utils';
+
+import { coverage } from './utils/coverage';
+
+after('generate coverage report', async () => {
+ if (env.parseBoolean(EnvVars.SolidityCoverage)) {
+ const coverageSubprovider = coverage.getCoverageSubproviderSingleton();
+ await coverageSubprovider.writeCoverageAsync();
+ }
+});