Giter Site home page Giter Site logo

Comments (4)

clairernovotny avatar clairernovotny commented on August 16, 2024 1

Hi @KyleKofoed,

it should support testing non-forms projects. The runner only uses forms to display its own UI.

Normally, the logic that you'd be testing would be in a referenced library, not in the main application.

So you'd have

Devices.xUnit project (with or without tests in them)
Test library (referenced by devices.xunit and added to the test assemblies list)
ios/android Library with stuff used by the tests

from devices.xunit.

KyleKofoed avatar KyleKofoed commented on August 16, 2024

Thank you for your response @onovotny!

What you have described is essentially what I did. And after some pain-points which were not xUnit runner related but Xamarin related. After some refactoring to make my algorithm more testable. I was able to test iOS/Android specific geolocation search algorithm logic on each platform of Xamarin!

I could potentially list some of the pain points here if it will be of some use, unless you have a better forum for that.

I was also curious if it would be wise to take this a bit further. For example, I could create activity’s and fragments (Android specific) in the background and actually perform some basic UI-less automated UI unit tests. (Sounds kind of strange when I read that out loud haha)

Do you know anyone who has tried this or is this something that is not recommended for the tool provided. Does automate UI tests live outside the realm of Unit testing? I think that could enable some pretty powerful testing if it’s plausible.

from devices.xunit.

clairernovotny avatar clairernovotny commented on August 16, 2024

Glad you were able to make it work! Always happy to hear about pain points and your workarounds -- or a blog post about them :)

For Automated UI testing, I would suggest taking a look at Xamarin's CodedUI test tools because those can be easily run with Test Cloud. Not sure xUnit is the right fit for that.

from devices.xunit.

KyleKofoed avatar KyleKofoed commented on August 16, 2024

Alright, I'll try to get a list together soon!

As far as CodedUI tests are concerned it looks like it uses nUnit. Does that mean I should move my tests from xUnit to nUnit? Perhaps that is a loaded question, However, I don’t think it would make sense to have two different testing paradigms in the same project.

I do have a preference for xUnit but going back and forth may be troublesome. Any thoughts on that?

Thank you so much for you input!

from devices.xunit.

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.