Skip to content

Conversation

@cgewecke
Copy link
Member

This...

const API = require('solidity-coverage/api');
const api = new API();

const config = {
  workingDir: process.cwd(),
  contractsDir: path.join(process.cwd(), 'contracts')
  artifactsDir: path.join(process.cwd(), 'artifacts')
} 

const {
  targets,
  skipped, 
} = api.utils.assembleFiles(config)

const instrumented = api.instrument(targets)

Also makes api.report's output folder path configurable as an fn argument.

@codecov-io
Copy link

codecov-io commented Nov 29, 2019

Codecov Report

Merging #445 into buidler-plugin will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           buidler-plugin     #445      +/-   ##
==================================================
+ Coverage           99.21%   99.22%   +<.01%     
==================================================
  Files                  18       19       +1     
  Lines                 768      772       +4     
==================================================
+ Hits                  762      766       +4     
  Misses                  6        6
Impacted Files Coverage Δ
plugins/resources/plugin.utils.js 97.26% <ø> (ø) ⬆️
lib/api.js 100% <100%> (ø) ⬆️
api.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f87c274...2300db8. Read the comment docs.

@cgewecke cgewecke merged commit 3612a81 into buidler-plugin Nov 29, 2019
@cgewecke cgewecke deleted the export-api branch November 29, 2019 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants