GithubHelp home page GithubHelp logo

Comments (4)

mluisbrown avatar mluisbrown commented on May 3, 2024

I'm not sure that making TestStore available in release builds would be a good idea, or that it would even work, as it references XCTest.

Why are you testing the store in a non-DEBUG configuration?

You could try defining DEBUG in your non-DEBUG configuration, but I'm not sure if that will have other undesirable side-effects.

from reactiveswift-composable-architecture.

lukelabonte avatar lukelabonte commented on May 3, 2024

Why are you testing the store in a non-DEBUG configuration?

We have a UNITTEST configuration on the project in question; we use it for our tests and a couple of other things.

You could try defining DEBUG in your non-DEBUG configuration, but I'm not sure if that will have other undesirable side-effects.

We have tried this, it didn't work well from what I recall.

from reactiveswift-composable-architecture.

mluisbrown avatar mluisbrown commented on May 3, 2024

All that the default Debug build configuration does is define DEBUG=1. There is nothing to prevent you setting that in any other build configuration:

image

I can only see that being a problem if for some reason your UNITTEST configuration depends on DEBUG not being defined.

As this is a very specific use case, I don't see a good reason to allow TestStore to be compiled for non-DEBUG builds, for the reasons I already mentioned (it's very closely tied to XCTest).

from reactiveswift-composable-architecture.

mluisbrown avatar mluisbrown commented on May 3, 2024

I'm closing this issue as it's not something we plan to support.

from reactiveswift-composable-architecture.

Related Issues (8)

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.