Reputation: 1
I am relying on the Ctrl + Shift + F10 shortcut/green play button to run single tests in rust in intellij. To give me the option to exclude some heavy tests while running all other tests, i added a feature called heavy-tests
and attribute such heavy tests with #[cfg_attr(not(feature = "heavy-tests"), ignore)]
.
This however makes the
Ctrl + Shift + F10 option not work anymore as i would have to change every single run configuration for every test to include the feature. Therefore my question is if I can change how the "generated" configuration by intellij is actually generated.
I took a look at the run-configuration-templates (under edit Configurations
> Edit configuration templates...
) which are defaulting to run and don't seem to give me the option to add individual features.
I could tick Activate all features for tests and benchmarks
which got the tests to run. This would possibly include features that i don't want to have activated however.
Furthermore I looked at the Modify Run Configuration...
option next to the actual tests which seems to only be for individual tests.
Upvotes: 0
Views: 22