GithubHelp home page GithubHelp logo

Comments (8)

allending avatar allending commented on June 13, 2024

Think this is a pretty good idea. What is there really does not depend on UIKit at all as it it, and so could be considered the foundation. What specific UIKit functionality are you thinking about? Views have been rather finicky w/ regards to testing in my experience.

from kiwi.

dimsumthinking avatar dimsumthinking commented on June 13, 2024

Would you then build cucumber like functionality for each platform?

from kiwi.

lukeredpath avatar lukeredpath commented on June 13, 2024

No plans for Cucumber-style testing. I'd recommend looking at Frank which actually uses Cucumber or KIF if you want a general integration testing solution.

However, I'm open to the idea of building some convenient matcher libraries for UIKit-related specs.

from kiwi.

dimsumthinking avatar dimsumthinking commented on June 13, 2024

Thanks Luke.

It just seems to me if you are taking this step then you are essentially entering into the functional testing category. Maybe I'm just not seeing it. The only parts of the GUI I generally test are those exposed as Outlets, Actions, etc. Although with O's and A's moving to the .m file, your approach may be more attractive.

Anyway, I'm just an observer and not actually doing the hard work that you guys are doing. I appreciate your efforts.

from kiwi.

alloy avatar alloy commented on June 13, 2024

I have been collecting and working on some GUI related test helper code over the last year, here’s an Nu example or a MacRuby example. (My spec framework is meant to be used with languages other than Objective-C.) It may or may not be interesting to make this a shared thing.

from kiwi.

lukeredpath avatar lukeredpath commented on June 13, 2024

I certainly agree that view testing is something better covered by functional tests that drive the UI.

What I was thinking of was controllers but I'm not sure, I've not done enough unit testing of controllers to know what would be useful and what wouldn't. I need to give this some thought.

from kiwi.

ma11hew28 avatar ma11hew28 commented on June 13, 2024

What about UIAutomation? I would also recommend separating out the Core, Mocks & Expectations into separate libraries. Like RSpec: https://www.relishapp.com/rspec/

from kiwi.

allending avatar allending commented on June 13, 2024

Lets look at this as part of #176.

from kiwi.

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.