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

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

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