NUnit runner not updating dlls
Hello,
I am using ReSharper 2.0.209.33 and I am having problems when I change the
source code in the files I am testing using nunit. The code being tested
is in one assembly while the tests are in another.
The referenced dlls are stored under c:\doc & set.\user\local settings\...\assembly\...
by the nunit runner, but they are never updated, so I get MissingMethodException
when I run the tests again after having added methods and calls them from
the test.
How do I work around this behaviour?
/Jacob
Please sign in to leave a comment.
I've had this happen a couple times. You can just nuke that directory in
the local settings (but I guess you already knew that.) Def a bug though.
-Greg
Jacob Kjeldahl wrote:
Do you run tests from the source code or from the unit test runner window?
Running unit tests from the runner window does not recompile the code. You
have to press "Build Projects" button to recompile.
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hello Valentin,
I have just tried to press the "Build Projects" and it does not change the
result.
When I use the context menu within the test file I can see that the build
process is started but still the assemblies are not updated.
Why do you copy the dlls to the local assembly cache? Nobody else seems to
do that.
I have created a tracking request: http://www.intellij.net/tracker/resharper/viewSCR?publicId=13072
/Jacob
>> I am using ReSharper 2.0.209.33 and I am having problems when I
>> change the source code in the files I am testing using nunit. The
>> code being tested is in one assembly while the tests are in another.
>>
>> The referenced dlls are stored under c:\doc & set.\user\local
>> settings\...\assembly\... by the nunit runner, but they are never
>> updated, so I get MissingMethodException when I run the tests again
>> after having added methods and calls them from the test.
Hello Jacob,
why are you sure it's ReSharper that copies assemblies to the local cache?
Actually it's
VS itself that does this. We've also occasionally encountered such problems,
there were solved by
manually removing dlls from cache and restarting VS.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> Do you run tests from the source code or from the unit test runner
>> window? Running unit tests from the runner window does not recompile
>> the code. You have to press "Build Projects" button to recompile.
>>
>> Valentin Kipiatkov
>>
>>> I am using ReSharper 2.0.209.33 and I am having problems when I
>>> change the source code in the files I am testing using nunit. The
>>> code being tested is in one assembly while the tests are in another.
>>>
>>> The referenced dlls are stored under c:\doc & set.\user\local
>>> settings\...\assembly\... by the nunit runner, but they are never
>>> updated, so I get MissingMethodException when I run the tests again
>>> after having added methods and calls them from the test.
>>>
Hello Dmitry,
First of all I have never seen the folder before.
Every time and only when I run a unit test using ReSharper it is created.
Removing the directory only helps until next time a unit test is run, then
it is recreated.
It is 100% reproducible on my machine, so if you need me to do anything to
investigate, just ask.
/Jacob