Comments (10)
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.
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.
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.
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.
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.
Awesome news!
from nunit-vs-adapter.
I have a pull request out for the fix.
from nunit-vs-adapter.
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.
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.
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)
- Use latest build of V2 in the adapter
- Nunit Adapter 2.1.1 can't find the dependent assembly and lead to no test found issue HOT 6
- Support for disable app domain HOT 2
- Tests are not displaying in 2015 VS test window when referencing a library in a Program Files (x86)/program/bin location
- Weird `TestCase` attribute behaviour when using specific character combinations HOT 3
- NUnitTestAdapter 2.1.1 not working with Visual Studio 2017 15.8.0 HOT 26
- NuGet Package : Add `repository` metadata. HOT 2
- Should the VSIX ever support VS 2019? HOT 3
- Test Explorer Picks up Zero Tests in VS 2017 for NUnit 2 HOT 23
- Nunit 2 test adapter does not support Visual Studio 2019 HOT 21
- DisplayName attribute for tests not return by adapter
- Update NUnit library to 2.7.1 HOT 2
- After updating to 2.2.0, my uitest crashes when called using nunit-console
- How to change used nunit 2 version of test adapter to e.g. v2.7.1 ? HOT 2
- vstest.console.exe TestCaseFilter does not work in 3.16 when the project has no tests that match the filter HOT 2
- NUnit adapter is failing when PropertyAttribute is used with NULL value HOT 2
- Extensions for nunit engine are not being loaded HOT 1
- Syntax for auto-removable test suffix HOT 3
- Any plans to release this adapter for Visual Studio 2022? HOT 2
- VS 2022 does not run tests from a class with a test containing the Range attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nunit-vs-adapter.