From 4668b0732ce4b62b3b7d19ea4e155a6d3c4e6004 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 22 Nov 2018 14:52:25 +0100 Subject: Move packages/contracts to contracts/core --- contracts/core/test/global_hooks.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 contracts/core/test/global_hooks.ts (limited to 'contracts/core/test/global_hooks.ts') diff --git a/contracts/core/test/global_hooks.ts b/contracts/core/test/global_hooks.ts new file mode 100644 index 000000000..2e9ac9e21 --- /dev/null +++ b/contracts/core/test/global_hooks.ts @@ -0,0 +1,15 @@ +import { env, EnvVars } from '@0x/dev-utils'; + +import { coverage } from './utils/coverage'; +import { profiler } from './utils/profiler'; + +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(); + } +}); -- cgit