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.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/metacoin/test/global_hooks.ts b/packages/metacoin/test/global_hooks.ts
index 509dc6837..4ab2ddc2f 100644
--- a/packages/metacoin/test/global_hooks.ts
+++ b/packages/metacoin/test/global_hooks.ts
@@ -1,10 +1,15 @@
import { env, EnvVars } from '@0xproject/dev-utils';
import { coverage } from './utils/coverage';
+import { profiler } from './utils/profiler';
-after('generate coverage report', async () => {
+after('generate coverage & profiler 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();
+ }
});