Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NUnit Integration with teamcity

Tags:

teamcity

nunit

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

like image 750
Ankit Avatar asked Aug 23 '12 07:08

Ankit


1 Answers

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);
        } 

    }
like image 75
Friend Avatar answered Oct 04 '22 18:10

Friend