-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests #112
Conversation
…ted outputs are more readable
…ted outputs are more readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you have moved the unit tests from commander.rs and config.rs to the integration level. Why? I think it does not make sense and it has the side effect that the functions are now public only for the purpose of tests and also you had to add the two new modules __private and constants. I suggest to revert these changes to the previous state.
reverted. However, I left this code within lib.rs: pub use trdelnik_derive_displayix::DisplayIx; I`m not sure why, but it is not possible to use: inside the test files for the corresponding macros. The same goes for: Macros do not expand in both cases. However, specifying: I`m not sure if this is expected behavior or not. |
I have looked into it and unfortunately there is no elegant solution :-/ macrotest::expand_args("tests/test_data/fuzzer_macros/fuzz_display_ix.rs", &["--features", "fuzzing"]); Unfortunately it does not work due to a bug in macrotest: eupn/macrotest#94 macrotest = { git = "https://github.com/eupn/macrotest.git", branch = "master" } in the Cargo.toml file, but again, there is another bug in this version and the dependencies inherited from the workspace such as However this is probably even worse than exposing the three macros which was the original workaround. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise it looks good now.
This PR should improve/introduce
Info