Ankit
Ankit

Reputation: 261

NUnit Integration with teamcity

I tried a lot,but still not getting proper link and articles which can sort out my problem.

I have some NUnit test(s),which I want to integrate with team city server,for this I am using NUnit runner type in Teamcity,i gave my dll file path from which test has to execute,but after a while its giving "This build is probably hanging".

Do i need to do any additional configurations for this? Can anyone help me out in this.

Here i am attaching my NUnit build runner configuration also.

enter image description hereenter image description here

Upvotes: 12

Views: 4001

Answers (1)

NoWar
NoWar

Reputation: 37633

I can say a couple of things that perhaps can be useful in your case.

  1. Make sure the you have correct name for your Test project.

So it should be like MyProject001.Tests. Also namespaces should be the same and finally output DLL should look like MyProject001.Tests.dll

  1. Make sure that you have MyProject001.Tests.dll in the correct folder locally and you commit it via SVN properly as well.

  2. Sometimes Auto MSIL option is not a good decision.

  3. Under NUnit settings I use path like *//BuildOutput/MyProject001.Tests.dll

  4. Also setup corret .NET framework version.

I hope it will help you somehow. Keep smiling, bro!

P.S.

In my C# code I have got

 [TestFixture]
    public class TestClass
    {

        [TestCase]
        public void Test0001()
        {
            // blah blah
            Assert.AreEqual(true, result);
        } 

    }

Upvotes: 2

Related Questions