You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should probably expand to something like this:
mod macro_tests {#[test]pubfntest_expand_a(){
macrotest::expand("tests/expand/a.rs");}#[test]pubfntest_expand_b(){
macrotest::expand("tests/expand/b.rs");}#[test]pubfntest_expand_c(){
macrotest::expand("tests/expand/c.rs");}}
NB: the #[macrotest:tests("glob-pattern")] must ignore the *.expanded.rs files in the directory specified. Otherwise, the macro will generate test cases for expanded code.
It would be awesome to have a macro for generating separate test cases for each generated sample in the
expanded/
directory.Motivation for that is having more granular test results, which would show a test failure for a specific macro or specific macro invocation.
The ideal API, IMHO, would be something like
The text was updated successfully, but these errors were encountered: