Unit tests are duplicated - once with namespace and once without - why?
Perhaps I have misconfigured namespaces and test in my code but ever since the last ReSharper upgrade i have had duplicated tests in the runner, one set with the namespace and one without.
I can remove the duplciates beofre running, but why is this happening?
It does not seem to matter how I have the GroupBy setting.
I do not see the same behavior in Nunit.
I do have Gallio test installed on the same machine. Could there be some sort of cross over?
Thanks.
Please sign in to leave a comment.
Hello Michael,
Does this happen with any solution or only with your solution in particular?
Could you please attach a screenshot demonstrating this behavior? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
It does not ahppen in another solution I have that I use in VS 2010.
This is the only solution I have in 2008.
Screenshot attached.
Attachment(s):
ResharperUnitTestDuplication.png
I've occasionally seen the same behavior with vs2010. What I do then is closing the RS test session window and create a new one via e.g. ReSharper->Unit Tests->Run All Tests From Solution .
Does this fix your issue or are you always seeing duplicated tests, even with a new RS test session?
It is "Run all tests from solution" that seems to create the situation.
I notice if I just run a set of tests from a given class it is fine.
Closing the session window and starting another does not make it go away when it is "Run all tests from solution"
Thanks.