Tests don't show in Unit Test Runner - Build 249

I must be missing something - I have Unit Test classes that I can run through the NUnit GUI without any problem - but no matter how hard I try I can't get them to show up in the Unit Test Runner - I get the little icon in the editor on the sidebar indicating a unit test - click to run it and it builds the project and stops at that point - when I open the UT runner window manually it doesn't show any tests inside of it either - what am I doing wrong - this is all being done from a single developer machine.

15 comments
Comment actions Permalink

I've got the same problem - build 255 on VS.NET 2003.

TestDriven.NET does pick them up though...

0
Comment actions Permalink

Please could you try the 2.0.1 build and report us if the problem is still
exists

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Bryan Hinton" <no_reply@jetbrains.com> wrote in message
news:5393222.1156779357936.JavaMail.itn@is.intellij.net...
>I must be missing something - I have Unit Test classes that I can run
>through the NUnit GUI without any problem - but no matter how hard I try I
>can't get them to show up in the Unit Test Runner - I get the little icon
>in the editor on the sidebar indicating a unit test - click to run it and
>it builds the project and stops at that point - when I open the UT runner
>window manually it doesn't show any tests inside of it either - what am I
>doing wrong - this is all being done from a single developer machine.


0
Comment actions Permalink

Hi, Im having the same problem as well and upgraded to 2.0 build #259, but that hasn't helped.

Any ideas?

Thanks
John

0
Comment actions Permalink

Is the problem reproducable on a small new created solution?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"John Hair" <no_reply@jetbrains.com> wrote in message
news:11462767.1156936024517.JavaMail.itn@is.intellij.net...

Hi, Im having the same problem as well and upgraded to 2.0 build #259, but
that hasn't helped.

>

Any ideas?

>

Thanks
John



0
Comment actions Permalink

Just created a new test project and it has the same problem.
Please let me know what files to zip up and an email address to send to, and I'll email the project to you.

Thanks
John

0
Comment actions Permalink

Eugene.Pasynkov (at) jetbrains.com

Thank you in advance!

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"John Hair" <no_reply@jetbrains.com> wrote in message
news:13029385.1157116585102.JavaMail.itn@is.intellij.net...

Just created a new test project and it has the same problem.
Please let me know what files to zip up and an email address to send to,
and I'll email the project to you.

>

Thanks
John



0
Comment actions Permalink

Hi Eugene,
Just sent the zip, Im hoping it helps!

Thanks
John

0
Comment actions Permalink

Hi Eugene,
Have you had a chance to try my example, and can you see the problem?

Thanks
John

0
Comment actions Permalink

Yesterday was a weekend :)
I'll check your issue today

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"John Hair" <no_reply@jetbrains.com> wrote in message
news:6240380.1157128874633.JavaMail.itn@is.intellij.net...

Hi Eugene,
Have you had a chance to try my example, and can you see the problem?

>

Thanks
John



0
Comment actions Permalink

Hi,

I just installed TestDriven.NET and profiled my test cases with the coverage runner of testdriven.net. After this, R# did not recognize my tests anymore. Maybe there is a problem with R# and Testdriven.net if they are used in conjunction. After cleaning my solution and several right clicks on "Run all Unit Tests in the solution" the tests are recognized again by R#. Maybe this helps to find the problem...

0
Comment actions Permalink

I just upgraded to 2.0.1 and created a simple solution - it recognizes the tests (I see the little ball like icons) and I don't have TestDriven.NET installed, but when I click on the ball and select run the test it compiles the app and then stops there - when I manually open the unit test runner window the run buttons etc.. are all blacked out. I posted a screen shot of what the Unit Test Runner window looks like



Attachment(s):
ReSharperUnitTestRunnerIssue.JPG
0
Comment actions Permalink

I posted on another thread somewhere also that I found that once I changed the cache location away from Solution Dir, the tests started working again.

0
Comment actions Permalink

Well - the tests were never working for me - but I tried moving the cache to a system temporary folder and not the Solution dir - I also tried clearing the caches as well - neither works - ReSharper detects the tests, but when I run them the Unit test Runner window doesn't come up - when I bring it up manually the run controls are grayed out. Is it looking for a specific version of NUnit to run the tests?

0
Comment actions Permalink

Further info for you, I installed VS2005 and Resharper 2 for it and unit tests work fine, VS2003 and Resharper 2 are the problem for me.

Cheers
John

0
Comment actions Permalink

I've had this problem too and managed to solve it. It seems R# confused the "TestFixture" and "TestAttribute" classes with a previous reference to another test library (in my case csUnit). In addition, I had been experimenting with a test library of my own previously. That library also supported the "TestAttribute" and it seems R# somehow lost track of which one to use. I tried all the tips in this thread but it seems the cache isn't completely cleared. I had a look in the cache files (in the solution folder) and realised R# had mapped the "TestAttribute" to the one supported by csUnit.

My next step was to clean up my solution and remove all references to the csUnit library as well as renaming my own "TestAttribute" class (my own attribute supports a human readable description as well as tracking which unit (Type/Member) is being tested, stuff I need because my customers demands full traceability).

I now recompiled but R# still didn't pick up the unit tests so I backed up the R# cache, removed the cache files and then cleaned the solition completely.

As closed and re-opened the solution R# rebuilt its cache, lo and behold, the unit test icons where back!

Hope this helps

/Jonas

0

Please sign in to leave a comment.