You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use solidity-coverage outside of a pure hardhat project (see #798) and my setup require the instrumented compilation to run in its own process before I execute the tests
I was thinking setInstrumentationData would allow me to have all the info I need once compilation is done
The idea was to perform the instrucmentation and compile the resulting contracts in one process
This process would do
I was trying to use solidity-coverage outside of a pure
hardhat
project (see #798) and my setup require the instrumented compilation to run in its own process before I execute the testsI was thinking
setInstrumentationData
would allow me to have all the info I need once compilation is doneThe idea was to perform the instrucmentation and compile the resulting contracts in one process
This process would do
and then when I execute the test, I load the data back
Unfortunately it does not save the data set here :
solidity-coverage/lib/api.js
Line 106 in 89882a2
I thus need to call
instrument
again and hope I am using the exact same data as the one used in the compilation stepMaybe I am doing something wrong ? or should getInstrumentationData gives also what coverage.js set ?
Edit:
I would probably need another process to be executed at the end of the test so I would need the following
to also work after the test have computed the hits, etc.. and get that info there
More edit:
This is currently how I handle it : https://github.com/wighawag/vitest-solidity-coverage/
The text was updated successfully, but these errors were encountered: