Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
If you run
truffle test it should only recompile contracts if they were modified.
It is possible that artifacts in build/ directory to be out of sync with contracts that will trigger a compilation of some contracts when running tests (*).
You can try force recompiling all contracts
truffle compile --reset. That should start with clean artifacts.
If all else fails, try renaming/removing the
build directory, and compiling.
Since January 2020 Truffle suite has option
With this option enabled it tests compiled contracts from
Here is how it looks like in Truffle v5.1.55:
PS D:\work\ERC20> truffle test --compile-none Using network 'test'. Compiling your contracts... =========================== > Everything is up to date, there is nothing to compile.