diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-12 13:03:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-12 13:03:22 +0800 |
commit | 71934f05a8758a180d85797156eb254360d9e5ce (patch) | |
tree | dc774b4a4a6f260c75365f5c9f00a7cd3db21689 /packages/metacoin/test/global_hooks.ts | |
parent | 746b1d0c4d0c5a6442373655877b268d365f9a0a (diff) | |
parent | 534a0d68362abb5a7e643852015c3496bead705c (diff) | |
download | dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.gz dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.bz2 dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.lz dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.xz dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.zst dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.zip |
Merge pull request #687 from 0xProject/feature/metacoin-docs
Add profiler and geth tests to metacoin
Diffstat (limited to 'packages/metacoin/test/global_hooks.ts')
-rw-r--r-- | packages/metacoin/test/global_hooks.ts | 7 |
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..7328531e4 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(); + } }); |