Git Product home page Git Product logo

Comments (4)

stephencelis avatar stephencelis commented on May 23, 2024

We use FBSnapshotTestCase to generate our screen shots, which will actually fail the test suite if a screenshot doesn't match the historical version!

An example use: DashboardViewControllerTests.swift#L41-L52

We use a single app environment to manage global mutable state (like locale, language, current time, api client, etc.), which allows us to push and pop changes quickly and easily. More info on that can be seen in this talk: https://academy.realm.io/posts/try-swift-brandon-williams-writing-testable-code/

from ios-oss.

cloudface avatar cloudface commented on May 23, 2024

Thank you for the quick reply! We use carthage in our project to manage our dependencies and FBSnapshotTestCase doesn't support it (only Cocoapods). How are you guys dealing with your dependencies? I see you have a makefile but I couldn't make out what kind of build system you guys are using.

from ios-oss.

stephencelis avatar stephencelis commented on May 23, 2024

We use git submodules and drag the associated project files into our main project (see Makefile#L45-L47). We have very few dependencies (and half of them internal), so manually managing submodules hasn't been an issue!

from ios-oss.

cloudface avatar cloudface commented on May 23, 2024

Gitsubmodules is an interesting way to do it, thanks for the tip! I will look into that. Thanks again for the help!

from ios-oss.

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.