Setup .NET 4.5 C# project on teamcity

Hi all,

just having a hard time getting the tests to run properly on TC.

I'm using TC 8.0.5 running on WS2012.

Runner type: NUnit
NUnit Runner: 2.6.3
.NET Runtime: auto (MSIL)
Version : v4.0
I'm having a hard time figuring this one out, and I think this is why it doesn't run the tests properly
Run tests from: dotnettest01.Tests/Controllers/* but I've also tried dotnettests01.Tests "I have no idea what to put in this box"?

Its a MVC project with Tests enabled, using VS2013 Web Express, I've installed the Unit Framework on my developer machine and changed the HomeControllerTest.cs to


...
namespace dotnettest01.Tests.Controllers

{

using NUnit.Framework;
 
[TestFixture]
public class HomeControllerTest
{

[Test]
public void Index()

{

// Arrange
HomeController controller = new HomeController();
 
// Act
ViewResult result = controller.Index() as ViewResult;
 
// Assert
Assert.IsNotNull(result);

}


...


[Test]
public void TestFail()

{

Assert.AreEqual("Hello", "Helo");

}

...

Also, since I'm here. What do you guys recommend for MVC application? MSBuild, NUnit, VS solution runner sln or something else? also, could you guys please provide some configuration examples or resorces I can look at?

I'm finding really really hard to setup TeamCity, I've tried the sln runner for another project and couldn't get that working either.

Please sign in to leave a comment.