Odd unit test behavior

I'm having some problems with the unit test runner in Resharper 6.  I have a test fixture which has 4 test methods, when I click the icon (little 3 circles) next to the test fixture declaration and select "Append to new session", Resharper appends about 16 test methods that do not belong to this fixture to the session, but only includes two of the actual test methods from the actual fixture.  The 16 methods it does include are coming from a test fixture which I had mistakenly set as a base class, but never ran any of these tests, I quickly corrected the mistake, but Resharper seems intent on including these tests now (and exluding the others?).  I've tried closing VS, as well as deleting the _Resharper folder from the solution directory to no avail.  Below are a couple of screenshots showing the issue; has anyone else ever run across anything like this?  Any suggestions in regards to fixing it?

Image:r1.png
Image:r2.png

---
Original message URL: http://devnet.jetbrains.net/message/5363720#5363720

5 comments
Comment actions Permalink

Just to update: Hitting "Run All Tests" seems to randomly remove and re-add these unit tests.

0
Comment actions Permalink

Hello Mark,

Does this happen only with this particular test fixture? Could you please
attach a small sample solution that would demonstrate this behavior? Thank
you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm having some problems with the unit test runner in Resharper 6.  I
have a test fixture which has 4 test methods, when I click the icon
(little 3 circles) next to the test fixture declaration and select
"Append to new session", Resharper appends about 16 test methods *that
do not belong to this fixture* to the session, but only includes two
of the actual test methods from the actual fixture.  The 16 methods it
does include are coming from a test fixture which I had mistakenly set
as a base class, but never ran any of these tests, I quickly corrected
the mistake, but Resharper seems intent on including these tests now
(and exluding the others?).  I've tried closing VS, as well as
deleting the _Resharper folder from the solution directory to no
avail.  Below are a couple of screenshots showing the issue; has
anyone else ever run across anything like this?  Any suggestions in
regards to fixing it?

Image:r1.png
Image:r2.png
---
Original message URL:
http://devnet.jetbrains.net/message/5363720#5363720



0
Comment actions Permalink

It seems to only do it on that one particular test fixture, as well as that individual machine.  I've updated a copy of the solution on my home PC from source control and haven't seen this behavior either.  Wierd...

0
Comment actions Permalink

Hello Mark,

Could you please strip down the solution that exhibits this problem (removing
files and projects while keeping this behavior reproducible) and attach it
here (or send it to andrew dot serebryansky at jetbrains dot com)? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

It seems to only do it on that one particular test fixture, as well as
that individual machine.  I've updated a copy of the solution on my
home PC from source control and haven't seen this behavior either.
Wierd...

---
Original message URL:
http://devnet.jetbrains.net/message/5366524#5366524



0
Comment actions Permalink

Andrey,
I cannot reproduce it anywhere but on this one fixture, on this one PC.  Its really strange, but it's not a big deal, so I'm just writing it off as "one of those things".  Thanks for your response.

0

Please sign in to leave a comment.