Code Monkey home page Code Monkey logo

Comments (10)

GoppeltM avatar GoppeltM commented on August 19, 2024

I can verify that for VS 2012 Update 4 as well. However, I had to increase the time to 10 mins, 4 were not enough (CPU cycle limited?). Thanks for the info, I already spent multiple days with this issue with no clue where to look. At least now it's obvious that this is a test runner issue.

from nunit-vs-adapter.

OsirisTerje avatar OsirisTerje commented on August 19, 2024

Hi !
I have checked this and can confirm it.
I checked this both locally on a TFS 2013 server onpremises, The same tests on MSTest (running with VSTEst runner) works as they should, the NUnit not. So it is either an adapter bug or a NUnit runner bug. There are no messages in the test output.

from nunit-vs-adapter.

CharliePoole avatar CharliePoole commented on August 19, 2024

Hi Terje,

Given that it doesn't happen under the NUnit console or gui runners, I'd
say it's unlikely to be NUnit. Our adapter doesn't do anything but wait for
the test to complete, so all that seems to be left is that there may be
some VS setting we are not making use of, which MSTest uses.

On Thu, Feb 13, 2014 at 2:38 PM, Terje Sandstrom
[email protected]:

Hi !
I have checked this and can confirm it.
I checked this both locally on a TFS 2013 server onpremises, The same
tests on MSTest (running with VSTEst runner) works as they should, the
NUnit not. So it is either an adapter bug or a NUnit runner bug.

Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-35035114
.

from nunit-vs-adapter.

ggohierroy avatar ggohierroy commented on August 19, 2024

As part of our TFS build, we added a post-build event to run the long-running tests in the nunit command line tool and dump them into a text file. There doesn't seem to be another alternative except switching to MSTest. Is there any update or clues of what the cause might be since the bug was reported?

from nunit-vs-adapter.

sandshadow avatar sandshadow commented on August 19, 2024

The root issue is that NUnitEventListener is a MarshalByRefObject. This means it has a default lifetime lease of 5 minutes, with an extension of 2 minutes every time it receives a callback.
http://msdn.microsoft.com/en-us/magazine/cc300474.aspx#edupdate
If you look at the listener's non-public members in the debugger, you will see it has an expired lease at the time the call to runner.run completes early.
I've tested switching to an infinite lifetime lease for the listener and it fixes the bug, but I need to verify it does so without introducing leaks.

from nunit-vs-adapter.

ggohierroy avatar ggohierroy commented on August 19, 2024

Awesome news!

from nunit-vs-adapter.

sandshadow avatar sandshadow commented on August 19, 2024

I have a pull request out for the fix.

from nunit-vs-adapter.

OsirisTerje avatar OsirisTerje commented on August 19, 2024

I have merged in the PR now, and I will add this to the 1.2 release. I will also build a bugfix-release tomorrow with this fix included, for testing/verification.

from nunit-vs-adapter.

sandshadow avatar sandshadow commented on August 19, 2024

Hello Terje,

Do you have a bugfix release package available for download?

Thanks,

Eric

From: Terje Sandstrom [mailto:[email protected]]
Sent: Monday, July 7, 2014 2:43 PM
To: nunit/nunit-vs-adapter
Cc: Eric Dettinger
Subject: Re: [nunit-vs-adapter] Long-running tests ignored (#24)

I have merged in the PR now, and I will add this to the 1.2 release. I will also build a bugfix-release tomorrow with this fix included, for testing/verification.


Reply to this email directly or view it on GitHub #24 (comment) . https://github.com/notifications/beacon/7919106__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDM4ODYwMiwiZGF0YSI6eyJpZCI6MjQ4MzUyNDh9fQ==--523d07f197987bdbdc451a6ccb7121573b5b9465.gif

from nunit-vs-adapter.

OsirisTerje avatar OsirisTerje commented on August 19, 2024

Hi!
Uploaded a bugfix release here: https://bintray.com/nunit/NUnitAdapter/NUnitAdapter/1.1.0.3/view/files

(Sorry for the delay - vacation issues :-) )

from nunit-vs-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.