aboutsummaryrefslogblamecommitdiffstats
path: root/packages/metacoin/test/global_hooks.ts
blob: 437061b460f3fc125423042744b2582c6df2abfa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                             

                                            
                                            
 
                                                           



                                                                               



                                                                               
   
import { env, EnvVars } from '@0x/dev-utils';

import { coverage } from './utils/coverage';
import { profiler } from './utils/profiler';

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();
    }
});