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

Automatic test collection using #[test] attribute #51

Open
mdevils opened this issue Dec 9, 2024 · 1 comment
Open

Automatic test collection using #[test] attribute #51

mdevils opened this issue Dec 9, 2024 · 1 comment

Comments

@mdevils
Copy link

mdevils commented Dec 9, 2024

Hello!

Is it possible to automatically collect all unit tests using #[test] attribute? I'm considering this library as a replacement to the default one, because it looks like libtest-mimic supports running tests in the main thread, which is crucial for my crate osakit (MacOS OSAKit Framework only works properly in the main thread). At the same time I'd like to keep the convenience that provides default testing library by automatically collecting tests.

@mdevils
Copy link
Author

mdevils commented Dec 11, 2024

I've created a crate that does exactly that: https://crates.io/crates/libtest-mimic-collect

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

No branches or pull requests

1 participant