Code Monkey home page Code Monkey logo

Comments (10)

OsirisTerje avatar OsirisTerje commented on August 19, 2024

Can you create and upload a small repro sln ?

from nunit-vs-adapter.

CharliePoole avatar CharliePoole commented on August 19, 2024

Monotouch is an alternative runtime to standard Mono and MS .NET. There are
a two reasons this won't work:

  1. 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.
  2. The adapter uses NUnit 2.6.3.
  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.

clairernovotny avatar clairernovotny commented on August 19, 2024

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.

CharliePoole avatar CharliePoole commented on August 19, 2024

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.

clairernovotny avatar clairernovotny commented on August 19, 2024

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.

CharliePoole avatar CharliePoole commented on August 19, 2024

@terje: What do you think about handling FileLoadException as a warning as well?

from nunit-vs-adapter.

OsirisTerje avatar OsirisTerje commented on August 19, 2024

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.

OsirisTerje avatar OsirisTerje commented on August 19, 2024

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.

CharliePoole avatar CharliePoole commented on August 19, 2024

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.vsix

Version 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.

clairernovotny avatar clairernovotny commented on August 19, 2024

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)

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.