Unit Tests
I feel foolish, but have to ask. The Unit Test blocks appear to be there, but nothing ever happens when I click them. I use NUnit and it seems to know they are unit tests, but when I click Run Unit Test, it triggers a compile, but nothing more happens. Is there a configuration step I need to execute first?
I've also tried to browse for a help file and haven't found one. It doesn't appear in the VS 2005 help either if it exists. Is there any documentation on the EAP version? I'm a registered 1.5 user, and am pleased to punch so far with the 2.0 EAP. I'm just trying to figure out how to get a few features working.
Please sign in to leave a comment.
Same here. Although we're using VS tests.
"Richard Grenfell" <no_reply@jetbrains.com> wrote in message
news:16690990.1145474298475.JavaMail.itn@is.intellij.net...
>I feel foolish, but have to ask. The Unit Test blocks appear to be there,
>but nothing ever happens when I click them. I use NUnit and it seems to
>know they are unit tests, but when I click Run Unit Test, it triggers a
>compile, but nothing more happens. Is there a configuration step I need to
>execute first?
>
Hello Richard,
concerning documentation, isn't it present in MSDN collection for VS 2005?
Is there 'ReSharper Help' filter
defined there? Please also check if it is installed on your system: Program
Files\JetBrains\ReSharper\VS 2005\Help.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
You've done everything ok.
Under some strage conditions, the test runner window isn't braught
foreground.
Please could you open it by yourself: ReSharper->Window->Unit Test
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Richard Grenfell" <no_reply@jetbrains.com> wrote in message
news:16690990.1145474298475.JavaMail.itn@is.intellij.net...
>I feel foolish, but have to ask. The Unit Test blocks appear to be there,
>but nothing ever happens when I click them. I use NUnit and it seems to
>know they are unit tests, but when I click Run Unit Test, it triggers a
>compile, but nothing more happens. Is there a configuration step I need to
>execute first?
>
Dmitry,
No, the help file is not present on my system. I have no Help folder under the Program Files\JetBrains\ReSharper\VS 2005\Help folder. Was it supposed to be part of the EAP installer? Or is that downloaded seperately?
I open the window by itself, but it's empty. If I have it open already and attempt to execute a test, it remains empty. I have the icon in the code edit window for these tests, and can request to execute, debug or profile the tests, but nothing but the compile ever seems to happen.
Is the problem reproducable on a small solution?
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Richard Grenfell" <no_reply@jetbrains.com> wrote in message
news:24245454.1145545808956.JavaMail.itn@is.intellij.net...
>> Please could you open it by yourself:
>> ReSharper->Window->Unit Test
>
Hello Richard,
yes, it should be installed there since the latest build 236? Have you checked
that
on the build 236?
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I created a standalone project with an NUnit test, and that ran. I went back to my main development project, and that still fails. R# appears to have caught up in that project so that it is displaying error status' and the like, so it doesn't appear to be pending knowledge of the file contents.
The project having issues contains about 6 primary projects other than the unit test DLL project, and also 13 secondary projects that are part of our shared project solutions. The amount of source code is not as extreme as some applications I've developed. In fact, it feels on the low end of mid-size as real development projects go.
The DLL with the NUnit projects was set as the active project, and was set to use the NUnit GUI in the project specifications. The small test solution I established doesn't care whether that is set or not, it simply seems to work. Now that I've seen it work on the smaller project, I'm not sure what the issue might be. The project in question was created prior to R# being installed however, if you think that might make some difference.
I see.
A few more questions:
1) Both "Debug" and "Run" do not work?
2) One of the possible reasons is that ReSharper couldn't find assembly
DLLs. Are they built into default directory, or some other one? Please could
you visit ReSharper->Options->Unit Test options page, and set the path to
the assembly DLL with test. Will this help?
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Richard Grenfell" <no_reply@jetbrains.com> wrote in message
news:13951746.1145559357453.JavaMail.itn@is.intellij.net...
>I created a standalone project with an NUnit test, and that ran. I went
>back to my main development project, and that still fails. R# appears to
>have caught up in that project so that it is displaying error status' and
>the like, so it doesn't appear to be pending knowledge of the file
>contents.
>
>
Correct. Neither brings up anything that I can tell.
The NUnit test library is built to : bin\Debug\
Which is to the best of my knowledge the default folder set by VS 2005.
I set the "Run tests from specified directory" to C:\]]>\bin\debug and the behavior did not change. I also tried setting the radio for Test Debugging to "Change startup project to the project being tested" although it was already set as the startup project. This had no effect.
As a test, I created a multi-project solution in my test solution and that didn't appear to have any issues.
However, I have found a solution to this problem.
I went to my Solution folder and deleted the Solution.SUO, Solution.NCB and Solution.resharper.user files and then reloaded the solution. When I requested the Unit Test run at that point, it came online and worked. So it looks like where the problem was, was in this project having pre-existed the installation of Resharper or that resharper had put some bad data into one of these files that required that they be rebuilt to clear the state.
Rich-