← Back to team overview

nunit-core team mailing list archive

[Bug 543517] Re: Feature: Ignore Timeout attribute in the debugger

 

Test below times out for me (with both 2.6.1 and 2.6.2 it seems) when I
use "step over" on the sleep statement (NCrunch 1.0.47 test runner)

[TestFixture]
    public class FooTest
    {
        [Test]
        [Timeout(5000)]
        public void CanDoSomething()
        {
            System.Threading.Thread.Sleep(6000);
            Assert.Fail("Never reaches this line when debugger is attached.");
        }
    }

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/543517

Title:
  Feature: Ignore Timeout attribute in the debugger

Status in NUnit V2 Test Framework:
  Fix Released

Bug description:
  Hi,

  It would be nice, if possible, if NUnit could ignore the Timeout
  attribute if it detects it is running in the debugger.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/543517/+subscriptions


Follow ups

References