-
-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
Hello, thank you for creating TUnit! I would love to see something along the lines of "focused tests" to easily limit the test run to classes or test methods without having to resort to filters.
Proposed Solution
[Focus]
public class RunsAll {
[Test] ...
}
public class RunsSome {
[Test] public void Skipped() {}
[FTest] public void Runs() {}
[Focus, Test] public void RunsToo() {}
}Alternatives Considered
dotnet run --treenode-filter /*/*/*/*[Category=Focus]Maybe? I find this too fiddly. I would have to read the docs every time I use these.
With [Focus] the above becomes dotnet run.
Feature Category
Test Discovery / Attributes
How important is this feature to you?
Nice to have - would improve my experience
Additional Context
I've been used to this since I had a look at rspec (a Ruby test framework).
RSpec also provides aliases –
fit,fdescribeandfcontext– as a shorthand forit,describeandcontextwith:focusmetadata, making it easy to temporarily focus an example or group by prefixing anf.
Contribution
- I'm willing to submit a pull request for this feature
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request