[1615] How can I exclude tests from running on obj assemblies?

In the new build I'm able to run NUnit tests on the server using the
sln2005 runner, but the way to specify the assemblies to be tested is
clumsy.

As I don't want to have to change the configuration of the build each time
I change the layout of my project, I specified the pattern '*\Tests.dll'
into the 'Run NUnit tests for' field of the project configuration.

That almost worked, but the tests were run twice, and some of them failed
(those that required .config access).

After filing the bug http://www.jetbrains.net/jira/browse/TW-837, I was
smart enough to see the build log, and figure that what was happening was
that the assemblies tested were that on the obj folders too (shame on me
for not seeing the log before posting the bug).

Now, I've tried various pattern combinations to exclude that files using
the 'Do not run NUnit tests on' field, but without any luck.

Any ideas as to how I can make this work? I don't want to specify the
folders manually as I want to be able to change the structure of the
solution. What would be best, is to have a way to specify that all the
output assemblies are to be run, ala 'Run Unit tests...' R# menu item
executed on the solution.

Did I make sense?

Regards,
Pablo

--

--

As it is in the proverb, played Cretan against Cretan.
-- Plutarch (46-120 AD)
-- Life of Lysander

Pablo Montilla
www.odyssey.com.uy

3 comments
Comment actions Permalink

Hello Pablo,

Could you please try to exclude */obj//.* pattern.
Please post your issue about running test for all output assemblies to Jira
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

In the new build I'm able to run NUnit tests on the server using the
sln2005 runner, but the way to specify the assemblies to be tested is
clumsy.

As I don't want to have to change the configuration of the build each
time I change the layout of my project, I specified the pattern
'*\Tests.dll' into the 'Run NUnit tests for' field of the project
configuration.

That almost worked, but the tests were run twice, and some of them
failed (those that required .config access).

After filing the bug http://www.jetbrains.net/jira/browse/TW-837, I
was smart enough to see the build log, and figure that what was
happening was that the assemblies tested were that on the obj folders
too (shame on me for not seeing the log before posting the bug).

Now, I've tried various pattern combinations to exclude that files
using the 'Do not run NUnit tests on' field, but without any luck.

Any ideas as to how I can make this work? I don't want to specify the
folders manually as I want to be able to change the structure of the
solution. What would be best, is to have a way to specify that all the
output assemblies are to be run, ala 'Run Unit tests...' R# menu item
executed on the solution.

Did I make sense?

Regards,
Pablo
As it is in the proverb, played Cretan against Cretan.
-- Plutarch (46-120 AD)
-- Life of Lysander
Pablo Montilla
www.odyssey.com.uy



0
Comment actions Permalink

On Tue, 26 Sep 2006 07:45:58 -0300, Eugene Petrenko
<eugene.petrenko@jetbrains.com> wrote:

Please post your issue about running test for all output assemblies to
Jira


Done: http://www.jetbrains.net/jira/browse/TW-861

Regards,
Pablo

--

Who are you, who are so wise in the ways of Science?
-- Monty Python & the Holy Grail

Pablo Montilla
www.odyssey.com.uy

0
Comment actions Permalink

On Tue, 26 Sep 2006 07:45:58 -0300, Eugene Petrenko
<eugene.petrenko@jetbrains.com> wrote:

Could you please try to exclude */obj//.* pattern.


It worked Great.

Many thanks!

Regards,
Pablo

--

Who are you, who are so wise in the ways of Science?
-- Monty Python & the Holy Grail

Pablo Montilla
www.odyssey.com.uy

0

Please sign in to leave a comment.