-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for custom test attributes
You may now add the attribute #[parameterized_macro(...)] after a #[parameterized(...)] attribute. The ... in the parameterized_macro may be replaced with a custom test attribute such as tokio::test. As an additional treat (because the above would not half be as useful without some of these), the parameterized test function now also parses and provides codegen for the async, const and unsafe keywords, in addition to the also newly added support for specifying return types.
- Loading branch information
1 parent
866805b
commit e018621
Showing
27 changed files
with
420 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
[package] | ||
name = "parameterized" | ||
version = "1.1.0" | ||
version = "1.0.1" | ||
authors = ["Martijn Gribnau <garm@ilumeo.com>"] | ||
edition = "2021" | ||
edition = "2018" | ||
license = "MIT OR Apache-2.0" | ||
description = "Procedural macro which brings a compact parameterized testing implementation to Rust (inspired by JUnit @ParameterizedTest)" | ||
documentation = "https://docs.rs/crate/parameterized" | ||
repository = "https://github.com/foresterre/parameterized" | ||
readme = "README.md" | ||
keywords = ["parameterized", "parametrized", "test", "unit-test", "junit"] | ||
categories = ["development-tools", "development-tools::testing"] | ||
rust-version = "1.56" | ||
|
||
[package.metadata] | ||
msrv = "1.56.0" | ||
|
||
[dependencies] | ||
parameterized-macro = { path = "parameterized-macro", version = "1" } | ||
[features] | ||
# not semver protected | ||
square-brackets-old-error-message = ["parameterized-macro/square-brackets-old-error-message"] | ||
|
||
[workspace] | ||
members = ["parameterized-macro"] | ||
|
||
[features] | ||
# not semver protected | ||
square-brackets-old-error-message = ["parameterized-macro/square-brackets-old-error-message"] | ||
[dependencies] | ||
parameterized-macro = { path = "parameterized-macro", version = "1" } | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1", features = ["full"] } |
Oops, something went wrong.