Releases: DunnAnDusted/test_gen
Releases · DunnAnDusted/test_gen
v0.2.3
Minor Refactoring + Contributor Docs Updates
What's Changed
General:
- Rename
TestHelper
toMacroHelper
- Improve use of destructuring in
MacroHelper::restructure
- Improve contributor facing documentation
Full Changelog: v0.2.2...v0.2.3
v0.2.2
Minor Refactoring
Some minor internal refactoring changes.
What's Changed:
General
- Tweak parsing implementations
- Tweak restructuring implementations
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Minor Refactoring
Some minor internal refactoring and error message updates.
What's Changed:
General
- Tweak helper argument error working
- Tweak parsing implementation
Full Changelog: v0.2.0...v0.2.1
v0.2.0
Proc-macro Rework
With version 0.1.0, I was somewhat unhappy with the design of the test_gen!
macro, and using macro_rules!
, and planned on investigating potentially reimplementing it as a procedural macro...
This is the major difference from the crate's initial version from the initial release: test_gen!
has been entirely reimplemented as a proc-macro.
As such, this comes along with a number of additions, as well as syntax changes:
What's Changed
Attribute syntax:
- Now specified using standard attribute syntax (Previously specified as an array of attribute contents).
- Now supports any attributes for static (block-wide) attributes (Previously only supported
should_panic
andignore
)
Helper function syntax:
- Now specified as an item path (Previously specified as an expression).
- No longer supports the use of closures as helper functions.
Arbitrary return type syntax:
- Now uses right-arrow syntax (Previously used fat-arrow syntax).
- Now supports both block-wide and per-case arbitrary return types (Per-case return type overrides block-wide return type. See documentation for further detail.)
What's New
Static Arguments
- Static arguments can now be specified after the helper function for a block of tests.
- These arguments will be passed as the first arguments of the helper function, for every test case.
- See documentation for further detail.
Full Changelog: v0.1.0...v0.2.0