-
Notifications
You must be signed in to change notification settings - Fork 0
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
xUnit Extensions #47
Comments
test name automation Not very relevant anymore, these token replacements |
Official set of extension examples Deep equals and assertion extension Samples of extensions Extensiblity examples in an old version of xunit |
XUnit offers some default naming configuration through the xUnit config file https://xunit.net/schema/current/xunit.runner.schema.json |
If collection fixtures don't work, I may be able to implement integration/unit test reuse by making inherited theory/fact attributes https://codopia.wordpress.com/2017/02/20/xunit-net-vs-nunit-a-pragmatic-comparison/ |
Needs more research, but there is the IUseFixture that allows you to define a method for setting up that fixture. Maybe I implement different test run strategies as variants of this and have a setup method for each run strategy. |
Summary of findings, the samples repository (https://github.com/xunit/samples.xunit) is really the definitive source of extension documentation. DisplayNames: Looks like display names could be overwritten by make a new TestCase type or TestCaseRunner
Points of extension
xUnit Flow: Discoverer > Executor > AssemblyRunner > CollectionRunner > TestClassRunner > TestMethodRunner > TestCase > TestCaseRunner > TestRunner > TestInvoker |
Figure out how to replicate my unit/integration extension to nUnit with xUnit.
Also, instead (or in addition to?) adding to the test name, I can add traits to organize the test more hierarchically
http://www.brendanconnolly.net/organizing-tests-with-xunit-traits/
The text was updated successfully, but these errors were encountered: