Skip to content
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

Get the testing cfg to transfer from top level app to alohomora, so that testing features and APIs are conditionally present #54

Open
KinanBab opened this issue Sep 10, 2024 · 1 comment

Comments

@KinanBab
Copy link
Collaborator

e.g. TestContext, discard_box, #[derive(Debug)], etc

@KinanBab
Copy link
Collaborator Author

Plan:

  • Create a new feature in Alohomora to signify test: e.g. testing or something similar, or maybe test if it does not conflict with the builtin test config
  • Use https://stackoverflow.com/questions/68618789/is-it-possible-to-enable-a-rust-feature-only-in-test in apps to specify that alohomora should get testing feature in tests. Alternatively, investigate some build.rs shenanigans.
  • TestContext, TestPolicy, etc just dissappear, instead their content is added as conditional impl blocks to Context, Policy, etc

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

No branches or pull requests

1 participant