aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/global_hooks.ts
blob: 089521d946b6cfb3074b5d616ee9801eca7d5246 (plain) (blame)
1
2
3
4
5
6
7
8
import { coverage, env, EnvVars } from '@0xproject/dev-utils';

after('generate coverage report', async () => {
    if (env.parseBoolean(EnvVars.SolidityCoverage)) {
        const coverageSubprovider = coverage.getCoverageSubproviderSingleton();
        await coverageSubprovider.writeCoverageAsync();
    }
});