Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

How to quickly debug a NUnit test in Visual Studio

, 30 Sep 2009 CPOL
An article on quickly debugging NUnit tests.
Jonno_SimpleTestRunner_demo.zip
Jonno.Extensions.dll
Jonno.AddIns.NunitHelper.dll
Jonno.AddIns.Logic.VisualStudioSpecific.dll
Jonno.AddIns.Entities.dll
Jonno.SimpleTestRunner.exe
Jonno Nunit Helper.AddIn
Jonno.Utilities.dll
Jonno.SimpleTestRunner.Logic.dll
Jonno.SimpleTestRunner.Entities.dll
Jonno_SimpleTestRunner_src.zip
Jonno.Extensions.UnitTests
Properties
vssver2.scc
Jonno.Logic.SimpleTestRunner
Properties
vssver2.scc
vssver2.scc
Jonno.SimpleTestRunner
Properties
vssver2.scc
vssver2.scc
Jonno.SimpleTestRunner.Entities
Properties
vssver2.scc
vssver2.scc
Jonno.Utilities
Properties
vssver2.scc
vssver2.scc
Jonno Nunit Helper.AddIn
Jonno.AddIns.Entities
Properties
vssver2.scc
vssver2.scc
Jonno.AddIns.Entities.UnitTests
Properties
vssver2.scc
vssver2.scc
Jonno.AddIns.Logic.EnvDTE
Properties
vssver2.scc
vssver2.scc
Jonno.AddIns.NunitHelper
bin
Properties
vssver2.scc
vssver2.scc
Jonno.Extensions
Properties
vssver2.scc
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{71C07E3F-F02F-4752-A46B-2ADD6B7BA404}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Jonno.AddIns.Entities.UnitTests</RootNamespace>
    <AssemblyName>Jonno.AddIns.Entities.UnitTests</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <SccProjectName>
    </SccProjectName>
    <SccLocalPath>
    </SccLocalPath>
    <SccAuxPath>
    </SccAuxPath>
    <SccProvider>
    </SccProvider>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="nunit.framework, Version=2.5.2.9222, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL" />
    <Reference Include="Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\Rhino.Mocks-3.6\Rhino.Mocks.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="CodeFilesTests.cs" />
    <Compile Include="CodeFileTests.cs" />
    <Compile Include="CompositeCodeElementsTests.cs" />
    <Compile Include="CompositeCodeElementTests.cs" />
    <Compile Include="MockCodeFile.cs" />
    <Compile Include="NunitProjectTests.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Jonno.AddIns.Entities\Jonno.AddIns.Entities.csproj">
      <Project>{3BA2718C-54E3-4CF8-866A-1B23AEACFE29}</Project>
      <Name>Jonno.AddIns.Entities</Name>
    </ProjectReference>
    <ProjectReference Include="..\Jonno.Utilities\Jonno.Utilities.csproj">
      <Project>{A7698575-84F3-435C-B97B-4F16CF84C84F}</Project>
      <Name>Jonno.Utilities</Name>
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

Share

About the Author

Paul "Jonno" Johnson
Software Developer (Senior)
United Kingdom United Kingdom
I have over 15 years of development experience, in many different languages, programming styles and platforms. Currently working as a C# coder, and residing in north Herts in the UK. I love lean software development and anything that reduces a grind to leave more time for useful coding!

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 30 Sep 2009
Article Copyright 2009 by Paul "Jonno" Johnson
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid