Skip to content

A non-invasive (uninstrumented) hardhat coverage plugin

Notifications You must be signed in to change notification settings

compound-finance/hardhat-cover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hardhat-cover

Either:

await Coverage
    .cover(await Sources.crawl(hre.artifacts))
    .traceReportAndWrite(ethers.provider, [txHash])

or:

const sources = await Sources.crawl(hre.artifacts)
const trace = await Trace.crawl(ethers.provider, txHash)
sources.loadAddresses(trace.addressToBytecodes)

const coverage = Coverage.cover(sources)
const report = coverage.report(trace.logs)

About

A non-invasive (uninstrumented) hardhat coverage plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published