Skip to content

Support ignored tests#14

Open
korrat wants to merge 2 commits intomgattozzi:mainfrom
korrat:support-ignored-tests
Open

Support ignored tests#14
korrat wants to merge 2 commits intomgattozzi:mainfrom
korrat:support-ignored-tests

Conversation

@korrat
Copy link

@korrat korrat commented Apr 2, 2022

This PR adds a new argument ignore to the attribute macro, which expands into an #[ignore] attribute on the generated test function. A minimal test for this functionality is included, but no tests for the interaction with other arguments or features yet.

Additionally, this PR includes attributes specified on the input function in the generated test function. If you'd like, I can break this functionality out into its own PR.

With the second change, it should also be possible to remove the first change and deprecate the should_panic argument in favor of specifying #[ignore] or #[should_panic] directly.

Fixes #12

@korrat
Copy link
Author

korrat commented Sep 26, 2022

ping @mgattozzi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Macro does not respect #[ignore] attribute

1 participant