You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.
However, when I use nested classes for structuring tests, the ReSharper 9 test runner does not show the complete test structure. I do not know if this is an issue with the ReSharper test runner itself, or the xUnit specific extension.
Here is an exaggerated example to show my point:
When I run the unit tests with the option set to group by project structure, it looks like this:
If I try to group by Projects and Namespaces, it looks like this:
So it seems like we only see the actual class that contains a test - any parent classes that itself does not hold one or more unit tests are not visible as part of the hierarchy.
Is this by design, or should I actually be able to see the exaggerated structure in this case?
Edit: I should mention - one of the problems with this is that it gets hard to tell tests for different classes apart when doing this. In the example above, if I had another class with tests in a GivenNullInput subclass, they would be kept apart, but visible at the same level with no indication of what they belong to.
The text was updated successfully, but these errors were encountered:
I doubt it would be that deep in practice, but I think it would be helpful to be able to display the full hierarchy of the test project, not just the root level, and then the classes that contain actual tests. In order to benefit from the Phil Haack method (link in first post), more of the structure would need to be visible.
Hi,
I'm trying to use a unit testing setup structure close to what Phil Haack described here:
http://haacked.com/archive/2012/01/02/structuring-unit-tests.aspx/
However, when I use nested classes for structuring tests, the ReSharper 9 test runner does not show the complete test structure. I do not know if this is an issue with the ReSharper test runner itself, or the xUnit specific extension.
Here is an exaggerated example to show my point:
When I run the unit tests with the option set to group by project structure, it looks like this:
If I try to group by Projects and Namespaces, it looks like this:
So it seems like we only see the actual class that contains a test - any parent classes that itself does not hold one or more unit tests are not visible as part of the hierarchy.
Is this by design, or should I actually be able to see the exaggerated structure in this case?
Edit: I should mention - one of the problems with this is that it gets hard to tell tests for different classes apart when doing this. In the example above, if I had another class with tests in a GivenNullInput subclass, they would be kept apart, but visible at the same level with no indication of what they belong to.
The text was updated successfully, but these errors were encountered: