I have set up a simple CCNET project that uses an ncoverProfile block
and an ncoverReport block.  When I try to start the CruiseControl.NET
service, it starts and then immediately stops.  So, I used the
CCValidator tool to check the ccnet.config file for errors.  When I
did so, the CCValidator tool displayed this error:

Internal validation failed for project 'Project Name': Illegal
characters in path.

If I comment out both the ncoverProfile block and the ncoverReport
block, the CCValidator says that "Internal validation passed."  Having
either block uncommented causes the validation to fail for
ccnet.config.

I cannot figure out what is wrong with my NCover blocks, because as
far as I can tell, they are exactly correct with what is described in
this documentation:
http://build.nauck-it.de/doc/CCNET/NCover%20Reporting%20Task.html
http://build.nauck-it.de/doc/CCNET/NCover%20Profiler%20Task.html

Please help.  Here is my ccnet.config file:

<project name="Project Name" queue="Q1" queuePriority="1">
        <workingDirectory>C:\Projects\Foo\Bar</workingDirectory>
        <artifactDirectory>C:\Projects\Foo\AutomatedBuildFiles\Artifacts\Bar</
artifactDirectory>
        <category>Blah</category>
        <webURL>http://COMPUTERNAME</webURL>
        <modificationDelaySeconds>60</modificationDelaySeconds>
        <state type="state" directory="C:\CCNetState" />

        <triggers>
          <intervalTrigger name="continuous" seconds="120"
buildCondition="IfModificationExists"/>
        </triggers>

        <tasks>

          <ncoverProfile>
                <executable>C:\Program 
Files\NCover\NCover.Console.exe</executable>
                <program>C:\Program Files\Microsoft Visual Studio 
9.0\Common7\IDE
\MSTest.exe</program>
                <testProject>FooBar.Tests.dll</testProject>
                <baseDir>C:\Projects\Foo\Bar\bin</baseDir>
          </ncoverProfile>

          <ncoverReport>
                <executable>C:\Program Files\NCover\NCover.Reporting.exe</
executable>
                <coverageFile>C:\Projects\Foo\Bar\Coverage.xml</coverageFile>
                <reports><report>FullCoverageReport</report></reports>
          </ncoverReport>

        </tasks>

        <publishers>
          <xmllogger logDir="buildlogs" />

        </publishers>

</project>

Reply via email to