Skip to content

Releases: DunnAnDusted/test_gen

v0.2.3

09 Jan 12:54
0af225f
Compare
Choose a tag to compare

Minor Refactoring + Contributor Docs Updates

What's Changed

General:

  • Rename TestHelper to MacroHelper
  • Improve use of destructuring in MacroHelper::restructure
  • Improve contributor facing documentation

Full Changelog: v0.2.2...v0.2.3

v0.2.2

19 Dec 03:28
07d68e4
Compare
Choose a tag to compare

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

15 Dec 16:50
31b5b8a
Compare
Choose a tag to compare

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

08 Dec 21:53
edc88ac
Compare
Choose a tag to compare

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 and ignore)

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

test_gen 0.1.0

04 Nov 01:59
ed6c648
Compare
Choose a tag to compare

The initial release of test_gen!

For the best documentation, test_gen can be found on Docs.rs.

For additional information, it can also be found on crates.io.