This is a highly specific bottleneck encountered when using Truffle.
- In my normal
truffle-config.jsfile, I have the optimizer enabled.
- I run a CI pipeline which has a coverage job.
- I use 0x/sol-coverage and it seems that when enabling the Solidity optimizer some information about the source code is lost and the aggregate coverage is lower than it should be.
- Therefore, I would ideally be able to run
truffle compile --disable-optimizer- or some way to modify the compiler settings.
At worst, I could modify the
truffle-config.js file before running the coverage job, but I feel this is not good practice.
Are there any other workarounds?