diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-04 06:48:15 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-04 06:48:15 +0800 |
commit | 7086bd32ee23f0931be26194eb28af8178f858eb (patch) | |
tree | 53764373a8228b00d88939fdecc6f6a1ae633c9e /contracts/core/test/global_hooks.ts | |
parent | 50bfbda79a312651581f03614c1b4f4cbbe49cf1 (diff) | |
parent | 50df67e7511460f051f91785bb4384485077ef60 (diff) | |
download | dexon-0x-contracts-7086bd32ee23f0931be26194eb28af8178f858eb.tar.gz dexon-0x-contracts-7086bd32ee23f0931be26194eb28af8178f858eb.tar.zst dexon-0x-contracts-7086bd32ee23f0931be26194eb28af8178f858eb.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/website/instant-configurator
Diffstat (limited to 'contracts/core/test/global_hooks.ts')
-rw-r--r-- | contracts/core/test/global_hooks.ts | 15 |
1 files changed, 15 insertions, 0 deletions
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(); + } +}); |