Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5946179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:47:09+00:00 2026-05-22T16:47:09+00:00

I am working on an MSBuilds script to run my NUnit tests from CruiseControl.Net.

  • 0

I am working on an MSBuilds script to run my NUnit tests from CruiseControl.Net. _Test_DAL has three tests in it.

I am having problem getting the right dos command to run the NUnit.

Here is the command to run NUnit but it does not find any tests.

D:\CC\JCDCHelper\Source_Test_DAL\bin\Debug>"C:\Program Files\NUnit 2.4.3\bin\nunit-console" /nologo _Test_DAL.dll

Tests run: 0, Failures: 0, Not run: 0, Time: 0.047 seconds

I am able to use resharper to run the tests, so I know the tests are written correctly.

Any help would be awesome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:47:10+00:00Added an answer on May 22, 2026 at 4:47 pm

    Going back answering questions i asked that were solved independantly.

    We use Powershell now, but here is how we solved it in case it’s useful to anyone

    function Invoke-UnitTests  { 
    
      $NUnitExe = "C:\" + $WhereIsProgramFiles + "\NUnit 2.5.7\bin\net-2.0\nunit-console.exe"
      Show-Status "Invoke-UnitTests was called."
      Show-Status $NUnitExe
    
      foreach( $OneProject in ( $TestProjects))
      {
        Show-Status "Running unit test for $OneProject"
    
        $GetCommonDlls = "D:\CC\$AppName\Source\$AppName\_CommonDlls"
        $GetBinDlls = "D:\CC\$AppName\Source\$AppName\Bin"
        Copy-Item "$GetCommonDlls\*" "$WorkingDir" 
        Copy-Item "$GetBinDlls\*" "$WorkingDir" 
    
        $WorkingDir = "D:\CC\$AppName\Source\$OneProject\obj\$ReleaseOrDebug"
        $NUnitOutput = "D:\CC\$AppName\NUnit\" + $OneProject + ".xml"
    
        & "$NUnitExe" "$WorkingDir\$OneProject.DLL" /nologo /xml:$NUnitOutput
        if ($lastExitCode -ne 0) 
        {
            Show-Status "NUnit test Command failed for Project:$ProjectName in Application:$AppName”
            Show-Status "Command that failed: ""$NUnitExe"" ""$WorkingDir\$OneProject.DLL"" /nologo /xml:$NUnitOutput"
            Show-Error “Error: Unit test for $OneProject failed”
        }
      }
    
      Show-Status "All Done with Unit tests"    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working workflow in CruiseControl.Net that successfully builds and tests an MSBuild
We have tests using WatiN that we want to run on our CruiseControl.NET server.
I'm trying to run my Silverlight tests via a command line (eventually MSBuild) working
I am just getting started using NAnt. I was working from a tutorial, and
I'm working on a .NET library, and I want the build script to be
I'm trying to get MSBuild working on a project that has just been moved
Working on a simple poker script in PHP and need a way to determine
Working with dates in ruby and rails on windows, I'm having problems with pre-epoch
My nant script fails when I run it under cruise-control on (Windows Server 2003),
I've been asked to migrate a VB.NET solution from Windows Server 2003, Visual Studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.