Bugs item #1076844, was opened at 2004-12-01 11:57
Message generated for change (Comment added) made by pw9272
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1076844&group_id=31650

Category: Tasks
Group: 0.85
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Phil Wells (pw9272)
Assigned to: Nobody/Anonymous (nobody)
Summary: nunit2 <assemblies> does not work correctly

Initial Comment:
I am trying to run an nunit2 test dll in
c:/dev/Common/VB.NET/Utils/Orbis.Common.Utils.Controls.Tests/bin/c:/dev/Common/VB.NET/Utils/Orbis.Common.Utils.Controls.Tests.dll

If I use this code, all is well:

<nunit2 failonerror="false" verbose="true">
   <formatter type="Xml" usefile="true"
extension=".xml"
outputdir="${Directory.Build.TestReports}" />
   <test>
      <assemblies>
         <include
name="c:/dev/Common/VB.NET/Utils/Orbis.Common.Utils.Controls.Tests/*/*.Tests.dll"
/>
      </assemblies>
   </test>
</nunit2>

However as soon as I replace the * in the <include>
with a ** all the tests in the dll fail

<nunit2 failonerror="false" verbose="true">
   <formatter type="Xml" usefile="true"
extension=".xml"
outputdir="${Directory.Build.TestReports}" />
   <test>
      <assemblies>
         <include
name="c:/dev/Common/VB.NET/Utils/Orbis.Common.Utils.Controls.Tests/**/*.Tests.dll"
/>
      </assemblies>
   </test>
</nunit2>

I need to use the ** as I actually want to run all test
dlls under c:/dev/Common/VB.NET/Utils, not just this one.

The failure reported by NAnt is

   [nunit2] Tests Failed.:
   [nunit2] NAnt.Core.BuildException:
C:\dev\Deployment\XML\Owl.build(129,4):
   [nunit2] Tests Failed.
   [nunit2]    at
NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask() in
d:\Source\nant-20041126T134635Z\src\NAnt.NUnit\NUnit2\NUnit2Task.cs:line
222
   [nunit2]    at NAnt.Core.Task.Execute() in
d:\Source\nant-20041126T134635Z\src\NAnt.Core\Task.cs:line
169

The failure reported in the generated XML file for each
test is

"File or assembly name Orbis.Common.Utils.Controls, or
one of its dependencies, was not found."

I am using NAnt Build 0.85.1791.0; nightly; 11/26/2004.

----------------------------------------------------------------------

>Comment By: Phil Wells (pw9272)
Date: 2004-12-01 13:06

Message:
Logged In: YES 
user_id=849478

My apologies - this was my mistake and not a bug. With the
** my code was also picking up test assemblies in the /obj/
folders.

----------------------------------------------------------------------

Comment By: Phil Wells (pw9272)
Date: 2004-12-01 12:36

Message:
Logged In: YES 
user_id=849478

Extract the contents of the attached file, browse to
C:/dev/Deployment/XML and run 'nant Test'

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2004-12-01 12:12

Message:
Logged In: YES 
user_id=707851

Phil,

Would it be possible to attach a small repro to this report 
(including the test assemblies) ?

Thanks !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1076844&group_id=31650


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to