diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-12 01:48:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-12 01:48:18 +0800 |
commit | 7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5 (patch) | |
tree | c8e47e9e42e58febc45411a360224535786cba48 /packages/contracts/test/global_hooks.ts | |
parent | 817c332d11835f02726f0609374d1c25c9ab39b5 (diff) | |
parent | 927ccc489c8cd69723bb2b13f81de150d7b255d0 (diff) | |
download | dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.gz dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.bz2 dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.lz dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.xz dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.zst dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.zip |
Merge pull request #675 from 0xProject/feature/sol-cov-geth
`ProfilerSubprovider` & Geth-related fixes for `sol-cov`
Diffstat (limited to 'packages/contracts/test/global_hooks.ts')
-rw-r--r-- | packages/contracts/test/global_hooks.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/contracts/test/global_hooks.ts b/packages/contracts/test/global_hooks.ts index 8b48b030d..83263c5b3 100644 --- a/packages/contracts/test/global_hooks.ts +++ b/packages/contracts/test/global_hooks.ts @@ -1,10 +1,15 @@ import { env, EnvVars } from '@0xproject/dev-utils'; import { coverage } from '../src/utils/coverage'; +import { profiler } from '../src/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(); + } }); |