12
votes

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

1
what is TeamCity write to build log? May be problem in your tests?Pavel Bakshy
Where can i check build logs?,for your reference i am sending you the test which i am using for this.Ankit
Click on build result and there will be 'Build Log' tab.Pavel Bakshy
Just try test like public void Test() { Assert.IsTrue(true); } If it works fine then problem in some user rights and TeamCity build agent can't perform WebRequest. In this case check firewall and user rights under whom TeamCity build agent starts.Pavel Bakshy
yes,i am able to access url from team city machine.Ankit

1 Answers

2
votes

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

    }