How to use the @0x/sol-coverage.TruffleArtifactAdapter function in @0x/sol-coverage

To help you get started, we’ve selected a few @0x/sol-coverage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ConsenSys / web3studio-bootleg / packages / bootleg-common / truffle-config.js View on Github external
const createTestProvider = projectRoot => {
  const testProvider = new ProviderEngine();
  const artifactAdapter = new TruffleArtifactAdapter(
    `${projectRoot}`,
    solcVersion
  );
  const coverageSubProvider = new CoverageSubprovider(
    artifactAdapter,
    defaultFromAddress,
    isVerbose
  );

  global.coverageSubProvider = coverageSubProvider;

  testProvider.addProvider(coverageSubProvider);

  testProvider.addProvider(
    new RevertTraceSubprovider(artifactAdapter, defaultFromAddress, isVerbose)
  );

@0x/sol-coverage

Generate coverage reports for Solidity code

Apache-2.0
Latest version published 2 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages