Coder Social home page Coder Social logo

Comments (5)

LeoNatan avatar LeoNatan commented on July 18, 2024 1

Using your project, to get the tests to run I linked the test target with LNPopupUI:

Screenshot 2023-05-14 at 1 57 35

I’m not sure why this is required. It could be an Xcode bug with how @testable import is implemented. I’m not really familiar with how that works in Swift. I don’t think there is any misconfiguration on this project’s part, so I am closing the issue.

Thanks

from lnpopupui.

tadelv avatar tadelv commented on July 18, 2024 1

Just to confirm, this fixes the build. Thanks again!

from lnpopupui.

LeoNatan avatar LeoNatan commented on July 18, 2024 1

Just an aside, I don’t think you should be unit-testing UI. I know with SwiftUI, this is a tall order, because of model-view intertwining (terrible), but normal XCTest is really not suited for any UI testing, nor should it be. This is a small issue. But throughout your testing, you will hit many, many issues related to expecting stuff from the system UI frameworks or their state. Just an unsolicited word of caution. 🙂

from lnpopupui.

tadelv avatar tadelv commented on July 18, 2024

Also, it does not matter whether LNPopupUI or LNPopupUI-Static is the dependency. Eitherway, module emitting fails because of LNPopupController_ObjC

from lnpopupui.

tadelv avatar tadelv commented on July 18, 2024

Thanks for the after thought, I appreciate it. I'm not testing the UI in the actual app where I first observed the issue.

from lnpopupui.

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.