Click here to Skip to main content
13,896,986 members
Rate this:
Please Sign up or sign in to vote.
See more:

I had created an automated build script to test unit test cases those were created by NUnit using
I had created one msbuild script as shown below:
<project defaulttargets="Build">
    <import project="<br" mode="hold" />      "C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>            
     <target name="Build">
        <msbuild projects="D:\Mymath\Mymath.sln" />
        <calltarget targets="Test" />       
    <target name="Test">
       <message text="Tests to run"></message>
       <nunit assemblies="D:\Mymath\MyMathTest2\bin\Debug\MyMathTest2.dll">
           ToolPath="C:\Program Files\NUnit 2.5.10\bin\net-2.0\nunit-console-x86.exe"
           OutputXmlFile="$(Logs)\nunit-results.xml" />

and my code for ccnet.config file is as shown below:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <project name="Test10Project">   
      <intervaltrigger seconds="60" />
        <buildargs>/v:quiet /noconlog /p:Configuration=Debug</buildargs>
        <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
        <executable>C:\Program Files\NUnit 2.5.10\bin\net-2.0\nunit-console-x86.exe</executable>

Then my build executed successfully.But it shows below error
  <message level="Error">fatal error: no inputs specified</message>

Please let me know solution for this error.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Edit the following line (removed testcontainer:) :
skumarn 10-Oct-11 6:18am
Hi Mehdi,
Thank you... Very Very Much..... With you solution i resolved this error.
Mehdi Gholam 10-Oct-11 6:33am
skumarn 10-Oct-11 6:46am
But one thing how can it shows BUILD SUCCESSFUL and that fatal error. I don't understand this. Please explain the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190306.1 | Last Updated 10 Oct 2011
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100