-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for targeting generic test fixtures #6
Comments
I'm guessing this will be something to do with the names NUnit uses for generic fixtures. The adapter will assume the above has a test path of |
It seems generic test fixtures are named in a similar way to their C# source code, so the above has the path: The following code resolves this:
|
Unfortunately I now have an issue targeting the methods of generic types. Because the full name of the test method includes the expanded generic type (in this case I guess I'll have to start using
|
Could you use the test ids? Perhaps by initializing some sort of dictionary? |
Would that be using I've got targeting methods in a generic type working using, I haven't spotted a way to tell the runner which method or class is being explicitly targeted. Is this a special case of the |
I assume you are doing this by creating a filter? If the filter directly selects an explicit test it should run if it selects a parent it should not. However, we might have a bug with combining a class level filter with a method level one. |
It's when |
Right... that's what I meant. If the resulting andfilter doesn't show an exact match to the method, you should create an issue for it. |
Done. nunit/nunit#1684 ⚡ |
Is it currently running no tests when the following it targeted:
The text was updated successfully, but these errors were encountered: