Automation of test creation, MACRO or?

⚓ rust    📅 2025-05-09    👤 surdeus    👁️ 2      

surdeus

Hi,

I would like to create test from features in some file.
I wonder if I have to create a kind of macro that generates the code of the test and launch it directly when use the cargo test command or if it already exists a way to generate test when cargo test is used ?

I can have a function to get all the feature and launch test one by one... But I want to have the possibility to launch test the same way when we launch them with cargo test command.
Like if test was created in tests.rs file and we launch them the same way as usual.

5 posts - 3 participants

Read full topic

🏷️ rust_feed