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

Add support for executing tests in nested classes when parent class is targeted #4

Open
jcansdale opened this issue Jul 17, 2016 · 3 comments

Comments

@jcansdale
Copy link
Contributor

E.g. allow the targeting of ParentClass:

    public class ParentClass
    {
        public class NestedClass
        {
            [Test]
            public void Pass()
            {
            }
        }
    }
@CharliePoole
Copy link

NUnit will eventually support this directly, but there's no schedule for it. See nunit/nunit#25

@jcansdale
Copy link
Contributor Author

Thanks for the heads up. We just need to make sure that if a parent class and nested classes are targeted, it doesn't execute the nested classes twice (breaking the code I'm about to push). This probably won't be an issue, depending on how the test filters work.

@CharliePoole
Copy link

So long as you use a filter it shouldn't be a problem. Selecting something multiple times won't get it running twice.

jcansdale added a commit that referenced this issue Jul 18, 2016
…s targeted #4

Add support for executing tests in concrete sub-classes when abstract class is targeted #5
Add support for targeting generic test fixtures #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants