Floris Verstegen
unread,Dec 9, 2009, 2:53:43 AM12/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ccnet-user
I'm trying to use Dynamic Parameters for a NUnit task. For some reason
the nunit-console.exe is called but not supplied with the assemblies
that should be tested.
Logging snippet:
2009-12-09 08:45:55,158 [Release DVTk Library:DEBUG] Running unit
tests: C:\CruiseControl.NET\Projects\DVTk_Library_Release\CVS
\DVTk_Library\Resources\NUnit\bin\nunit-console.exe /xml=C:
\CruiseControl.NET\Projects\DVTk_Library_Release\Logging\NUnit\nunit-
results.xml /nologo
2009-12-09 08:45:55,173 [Release DVTk Library:DEBUG] Starting process
[C:\CruiseControl.NET\Projects\DVTk_Library_Release\CVS\DVTk_Library
\Resources\NUnit\bin\nunit-console.exe] in working directory [C:
\CruiseControl.NET\Projects\DVTk_Library_Release] with arguments [/
xml=C:\CruiseControl.NET\Projects\DVTk_Library_Release\Logging\NUnit
\nunit-results.xml /nologo]
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,517 [4:DEBUG] ] NUNIT-CONSOLE [inputfiles]
[options]
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,517 [4:DEBUG] ] Runs a set of NUnit tests from the
console.
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,517 [4:DEBUG] ] You may specify one or more
assemblies or a single
2009-12-09 08:45:55,517 [4:DEBUG] ] project file of type .nunit.
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,517 [4:DEBUG] ] Options:
2009-12-09 08:45:55,517 [4:DEBUG] ] /fixture=STR Test fixture
to be loaded (Short format: /load=STR)
2009-12-09 08:45:55,517 [4:DEBUG] ] /run=STR Name of the
test to run
2009-12-09 08:45:55,517 [4:DEBUG] ] /config=STR Project
configuration to load
2009-12-09 08:45:55,517 [4:DEBUG] ] /xml=STR Name of XML
output file
2009-12-09 08:45:55,517 [4:DEBUG] ] /transform=STR Name of
transform file
2009-12-09 08:45:55,517 [4:DEBUG] ] /xmlConsole Display XML
to the console
2009-12-09 08:45:55,517 [4:DEBUG] ] /output=STR File to
receive test output (Short format: /out=STR)
2009-12-09 08:45:55,517 [4:DEBUG] ] /err=STR File to
receive test error output
2009-12-09 08:45:55,517 [4:DEBUG] ] /labels Label each
test in stdOut
2009-12-09 08:45:55,517 [4:DEBUG] ] /include=STR List of
categories to include
2009-12-09 08:45:55,517 [4:DEBUG] ] /exclude=STR List of
categories to exclude
2009-12-09 08:45:55,517 [4:DEBUG] ] /domain=X AppDomain
Usage for Tests
2009-12-09 08:45:55,517 [4:DEBUG] ] /noshadow Disable
shadow copy when running in separate domain
2009-12-09 08:45:55,517 [4:DEBUG] ] /nothread Disable use
of a separate thread for tests
2009-12-09 08:45:55,517 [4:DEBUG] ] /wait Wait for
input before closing console window
2009-12-09 08:45:55,517 [4:DEBUG] ] /nologo Do not
display the logo
2009-12-09 08:45:55,517 [4:DEBUG] ] /nodots Do not
display progress
2009-12-09 08:45:55,517 [4:DEBUG] ] /help Display help
(Short format: /?)
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,517 [4:DEBUG] ] Options that take values may use
an equal sign, a colon
2009-12-09 08:45:55,517 [4:DEBUG] ] or a space to separate the option
from its value.
2009-12-09 08:45:55,517 [4:DEBUG] ]
2009-12-09 08:45:55,627 [4:DEBUG] ] standard-output stream closed --
null received in event
2009-12-09 08:45:55,627 [23:DEBUG] ] standard-error stream closed --
null received in event
2009-12-09 08:45:55,627 [5:DEBUG] ] process exited event received
Configuration file snippet:
<project name="Release DVTk Library" queue="Releases"
queuePriority="10">
<workingDirectory>C:\CruiseControl.NET\Projects
\DVTk_Library_Release</workingDirectory>
<artifactDirectory>C:\CruiseControl.NET\Projects\DVTk_Library_Release
\Artifacts</artifactDirectory>
<state type="state" directory="C:\CruiseControl.NET\Projects
\DVTk_Library_Release" />
<parameters>
<numericParameter name="VersionNumberMajor">
<description>The Major version number that will be associated
with the DVTk Library.</description>
</numericParameter>
<numericParameter name="VersionNumberMinor">
<description>The Minor version number that will be associated
with the DVTk Library.</description>
</numericParameter>
<numericParameter name="VersionNumberBuild">
<description>The Build version number that will be associated
with the DVTk Library.</description>
</numericParameter>
<numericParameter name="VersionNumberRevision">
<description>The Revision version number that will be associated
with the DVTk Library.</description>
</numericParameter>
</parameters>
<tasks>
<nunit>
<path>C:\CruiseControl.NET\Projects\DVTk_Library_Release\CVS
\DVTk_Library\Resources\NUnit\bin\nunit-console.exe</path>
<outputfile>C:\CruiseControl.NET\Projects\DVTk_Library_Release
\Logging\NUnit\nunit-results.xml</outputfile>
<timeout>600</timeout>
<assemblies>
<assembly>C:\CruiseControl.NET\Projects\DVTk_Library_Release
\CVS\DVTk_Library\Releases\$[VersionNumberMajor|0]_$
[VersionNumberMinor|0]_$[VersionNumberBuild|0]_$[VersionNumberRevision|
0]\Source\Assemblies\DVTk High Level Interface\NUnit Tests\bin\Release
\DvtkHighLevelInterface - NUnit Tests.dll</assembly>
<assembly>C:\CruiseControl.NET\Projects\DVTk_Library_Release
\CVS\DVTk_Library\Releases\$[VersionNumberMajor|0]_$
[VersionNumberMinor|0]_$[VersionNumberBuild|0]_$[VersionNumberRevision|
0]\Source\Assemblies\DVTk Ihe Actors\NUnit Tests\bin\Release
\DVTkIheActors - NUnit Tests.dll</assembly>
</assemblies>
</nunit>
</tasks>
<publishers>
<xmllogger logDir=".\buildlogs" />
<statistics />
<modificationHistory />
</publishers>
</project>
I use the same parameters on more places in the project with the
<format></format> option, but since I have multiple assemblies that
need to be ran by NUnit I don't see any other way then using the $
[name|value] option.