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

Create new super-type for FactAttribute that is the basis of extensibility #2335

Open
bradwilson opened this issue Jun 30, 2021 · 0 comments

Comments

@bradwilson
Copy link
Member

bradwilson commented Jun 30, 2021

In v2, FactAttribute is the base attribute that is used to identify a test method in the default test framework implementation (the way the majority of xUnit.net users use it). As an extensibility point, you can derive from FactAttribute and implement changed behavior; an obvious example is TheoryAttribute, which allows the user to write parameterized (data-driven) tests.

There are implied implementations of behavior that currently reside in FactAttribute: namely, that you can get/set the display name, skip reason, and timeout for a given test. From an extensibility perspective, it would be nice to lower these requirements so that it opens the door for more flexible definitions of test methods, without requiring a heavier-weight implementation of the test framework infrastructure.

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