hardhat-gas-reporter icon indicating copy to clipboard operation
hardhat-gas-reporter copied to clipboard

Support mocha parallel

Open cgewecke opened this issue 4 months ago • 0 comments

This might be possible by setting an afterAll mocha root hook via require in the mocha config. The hook will write the processes' gasData to cache. Then, coming out of TASK_TEST we

  • look in cache for files with the right title (like "hhgr.randomnumber.json")
  • load and merge
  • delete cached
  • render

Questions

  • is it safe to append/rewrite mocha require via the config? (Can you even?)

cgewecke avatar Mar 05 '24 20:03 cgewecke