Runnig NUnit tests with config file

My system needs config file to run NUnit tests. NUnit has option to show
where the config file is. Is here any way to specify where is my config file
in Resharper?
Without this my tests fail if I run them from ReSharper.
Thank you
Shimon.


12 comments
Comment actions Permalink

ReSharper should use the config file if it is located nearby the assembly.
Why you have to put it into another location?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Shimon Sim" <shimonsim048@community.nospam> wrote in message
news:dk7r23$eg7$1@is.intellij.net...

My system needs config file to run NUnit tests. NUnit has option to show
where the config file is. Is here any way to specify where is my config
file in Resharper?
Without this my tests fail if I run them from ReSharper.
Thank you
Shimon.



0
Comment actions Permalink

Thank you for an answer.
I don't need to put it into another location. It just easer not to have it
in debug directory.
So you suggest I should put it in the /Debug subdirectory and give it the
name something like this .dll.config? Is it correct ? Shimon. "Eugene Pasynkov (JetBrains)" ]]> wrote in
message news:dk7rn7$68t$1@is.intellij.net...

ReSharper should use the config file if it is located nearby the assembly.
Why you have to put it into another location?

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Shimon Sim" <shimonsim048@community.nospam> wrote in message
news:dk7r23$eg7$1@is.intellij.net...

>> My system needs config file to run NUnit tests. NUnit has option to show
>> where the config file is. Is here any way to specify where is my config
>> file in Resharper?
>> Without this my tests fail if I run them from ReSharper.
>> Thank you
>> Shimon.
>>
>



0
Comment actions Permalink

This should work.

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Shimon Sim" <shimonsim048@community.nospam> wrote in message
news:dk7sa8$k1n$1@is.intellij.net...

Thank you for an answer.
I don't need to put it into another location. It just easer not to have it
in debug directory.
So you suggest I should put it in the /Debug subdirectory and give it the
name something like this <MyAssemblyName>.dll.config?
Is it correct ?
Shimon.

>

"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:dk7rn7$68t$1@is.intellij.net...

>> ReSharper should use the config file if it is located nearby the
>> assembly.
>> Why you have to put it into another location?
>>
>> --
>> Eugene Pasynkov
>> Developer
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>> "Shimon Sim" <shimonsim048@community.nospam> wrote in message
>> news:dk7r23$eg7$1@is.intellij.net...
>>> My system needs config file to run NUnit tests. NUnit has option to show
>>> where the config file is. Is here any way to specify where is my config
>>> file in Resharper?
>>> Without this my tests fail if I run them from ReSharper.
>>> Thank you
>>> Shimon.
>>>
>>
>>
>



0
Comment actions Permalink

Thank this did work.

"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:dk7sv4$nfk$1@is.intellij.net...

This should work.

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Shimon Sim" <shimonsim048@community.nospam> wrote in message
news:dk7sa8$k1n$1@is.intellij.net...

>> Thank you for an answer.
>> I don't need to put it into another location. It just easer not to have
>> it in debug directory.
>> So you suggest I should put it in the /Debug subdirectory and give it the
>> name something like this .dll.config? >> Is it correct ? >> Shimon. >> >> "Eugene Pasynkov (JetBrains)" wrote in >> message news:dk7rn7$68t$1@is.intellij.net... >>> ReSharper should use the config file if it is located nearby the >>> assembly. >>> Why you have to put it into another location? >>> >>> -- >>> Eugene Pasynkov >>> Developer >>> JetBrains, Inc >>> http://www.jetbrains.com >>> "Develop with pleasure!" >>> "Shimon Sim" wrote in message >>> news:dk7r23$eg7$1@is.intellij.net... >>>> My system needs config file to run NUnit tests. NUnit has option to >>>> show where the config file is. Is here any way to specify where is my >>>> config file in Resharper? >>>> Without this my tests fail if I run them from ReSharper. >>>> Thank you >>>> Shimon. >>>> >>> >>> >> >> >]]>



0
Comment actions Permalink


I think that by default Visual Studio copies file named App.config from project
to output directory with correct name (taken from output target name and
.config appended to the end) on each build. Maybe this makes it a bit easier.
At least with .exe builds, maybe with .dll too.

-Marko




0
Comment actions Permalink

Marko Lahma wrote:


I think that by default Visual Studio copies file named App.config from
project to output directory with correct name (taken from output target
name and .config appended to the end) on each build. Maybe this makes it
a bit easier. At least with .exe builds, maybe with .dll too.

-Marko



Hi

Not really the place for this but heck, it all adds to the overall effect.
q: How do I get nUnit test working with the latest build of .NET 2?

Appologies if this is dissalowed.

w

0
Comment actions Permalink

q: How do I get nUnit test working with the latest build of .NET 2?


Do you mean our unit test runner, or the NUnit itself?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:
>>q: How do I get nUnit test working with the latest build of .NET 2?


Do you mean our unit test runner, or the NUnit itself?

Sorry :) I mean the nUnit test framework. I should probably ask else
where, just that this is the only place I have seen it being spoken
about and google turns up nothing.

w


http://www.nunit.org/

0
Comment actions Permalink

Is your question how to use NUnit framework?

"Wayne Douglas" <wayne@codingvista.com> wrote in message
news:dkajoi$9kg$1@is.intellij.net...

Eugene Pasynkov (JetBrains) wrote:

>>>q: How do I get nUnit test working with the latest build of .NET 2?
>>
>>
>> Do you mean our unit test runner, or the NUnit itself?
>>

Sorry :) I mean the nUnit test framework. I should probably ask else
where, just that this is the only place I have seen it being spoken about
and google turns up nothing.

>

w

>
>

http://www.nunit.org/



0
Comment actions Permalink

The easiest way is to recompile NUnit under 2.0 framework, and use it then.
We've done it here internally, and this approach works fine

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Wayne Douglas" <wayne@codingvista.com> wrote in message
news:dkajoi$9kg$1@is.intellij.net...

Eugene Pasynkov (JetBrains) wrote:

>>>q: How do I get nUnit test working with the latest build of .NET 2?
>>
>>
>> Do you mean our unit test runner, or the NUnit itself?
>>

Sorry :) I mean the nUnit test framework. I should probably ask else
where, just that this is the only place I have seen it being spoken about
and google turns up nothing.

>

w

>
>

http://www.nunit.org/



0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:

The easiest way is to recompile NUnit under 2.0 framework, and use it then.
We've done it here internally, and this approach works fine

Yeah, thats what I thought but I still get an error claiming that the
wrong framework is being used with a link to download an older version
of .NET. I know this is breaching topic boundaries and appologise.

Thanks guys

w

0
Comment actions Permalink

Hello Wayne,

Download 2.2.2 bin (which is not an installer), and extract it somewhere...

--
Matt Berther
http://www.mattberther.com

Eugene Pasynkov (JetBrains) wrote:

>> The easiest way is to recompile NUnit under 2.0 framework, and use it
>> then. We've done it here internally, and this approach works fine
>>

Yeah, thats what I thought but I still get an error claiming that the
wrong framework is being used with a link to download an older version
of .NET. I know this is breaching topic boundaries and appologise.

Thanks guys

w



0

Please sign in to leave a comment.