v5.4.2 – Mixed berry pie
Good day, folks! 👋
Here's a long-absent command line option: truffle test --grep
(or -g
), to match Mocha's --grep
option for filtering tests by name. Glad we finally added that—it'll come in handy when you want to run only a subset of your tests at a time. Check out those linked Mocha docs to see how it works!
Apart from that, we've got a few bug fixes, mostly related to how Truffle keeps track of files paths for import statements in Solidity. We've been coordinating with @cameel from the Solidity team to align Truffle's integration with solc best practices moving forward, and there's been a bit of fallout from that. We should have the worst of these bugs fixed now, though! (Please do let us know you run into any problems with things like contracts getting compiled twice in the same truffle compile
run, or if you encounter any errors that shouldn't happen. We'll be on the lookout! 🔎 🐛) All-in-all, we're rather excited about these changes - see Solidity's docs about Import Path Resolution, namely how the Solidity compiler's "virtual filesystem" ensures compilation results are the same across different machines/platforms/etc.
As always, it's our pleasure to bring you this week's Truffle release. We hope you enjoy.
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add
--grep
option totruffle test
(#4179 by @eggplantzzz)
Bug fixes
- Disallow non-absolute non-relative FS imports (#4190 by @haltman-at)
- Use backslashes on Windows while resolving imports (#4195 by @haltman-at)
- Fix @truffle/db error on dry-run (#4198 by @eggplantzzz)