Comments (10)
Can you create and upload a small repro sln ?
from nunit-vs-adapter.
Monotouch is an alternative runtime to standard Mono and MS .NET. There are
a two reasons this won't work:
- There is no NUnit build for Monotouch. NUnit 2.6.3 works with .NET 1.1
through 4.5 and Mono profiles 2.0 through 4.0. NUnitLite 1.0 works with
those plus Silverlight and .NET CF 2.0 and 3.5. The Xamarin guys have a
special build of NUnitLite, based on NUnitLite 0.7, for use with Monotouch.
We plan to have our own build one of these days. - The adapter uses NUnit 2.6.3.
- The test explorer window, as far as I know, can only run tests under
Microsoft .NET.
Charlie
On Mon, Dec 9, 2013 at 6:52 AM, Terje Sandstrom [email protected]:
Can you create and upload a small repro sln ?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-30137706
.
from nunit-vs-adapter.
I'm not looking for the runner to run the tests, just not throw errors trying to read/parse them :)
I would think that if the project has a reference to monotouch.dll (and/or whatever it uses for android), then the runner should just continue and ignore the assembly.
from nunit-vs-adapter.
OK, that's a reasonable expectation.
Looking more closely at the stack trace, I see that the adapter correctly ignores the error with monotouch.dll, giving a message that says you can ignore the problem.
The actual problem is with System.Reactive.Core, which throws an error that reads as if it probably should not be ignored. Can you provide any more info about that error?
Charlie
from nunit-vs-adapter.
I was trying to create a small repro, which I can't. That version of System.Reactive.Core is from the Xamarin Component store -- it has a version of 0.0.0.0.
Other projects in my sln use the "real" Rx build. That said, they don't reference each other (file-linked projects).
I have a PCL .Core lib that uses the real Rx, and a .Core.iOS (xamarin proj) that uses the xamarin one (linked files).
I also have two test projects, a regular .NET 4.5 one using nunit, and a second xamarin.ios app using xamarin's NUnitLight. Each of them is linked to their respective .core assms, so there shouldn't be any overlap.
from nunit-vs-adapter.
@terje: What do you think about handling FileLoadException as a warning as well?
from nunit-vs-adapter.
I can't see anything wrong in that in any case. It may signal a missing dependency in some cases, which devs should fix, but again - if it is a warning, that would be equally well. We should try to give it some helpful information in the output message, but it is often hard to say exactly what is wrong.
from nunit-vs-adapter.
I have uploaded a fix at https://skydrive.live.com/redir?resid=3B7C463D1918CF24!11311&authkey=!AJj9SwpGtb96s3E&ithint=file%2c.vsix
@onovotny: Can you test it and confirm back if it is ok ?
Version no 1.0.0.8.
The exception IS ignored in any case, but it looks confusing and ugly.
@charlie: Perhaps we should not display the exception message, except when a Verbose option is turned on, which of course needs the Settings to be implemented.
from nunit-vs-adapter.
The posted message shows zero tests discovered, so I was assuming it did
not go on to find tests elsewhere. Were there other tests?
On Dec 9, 2013 1:28 PM, "Terje Sandstrom" [email protected] wrote:
I have uploaded a fix at
https://skydrive.live.com/redir?resid=3B7C463D1918CF24!11311&authkey=!AJj9SwpGtb96s3E&ithint=file%2c.vsixVersion no 1.0.0.8.
The exception IS ignored in any case, but it looks confusing and ugly.
@charlie https://github.com/Charlie: Perhaps we should not display the
exception message, except when a Verbose option is turned on, which of
course needs the Settings to be implemented.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-30175259
.
from nunit-vs-adapter.
There is one other test in the .NET 4.5 lib. It seems to show up in the Test Explorer and I'm able to run it.
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.