Code Monkey home page Code Monkey logo

swiftpackagetemplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swiftpackagetemplate's Issues

SwiftUI Previews Are Not Excluded From the Test Coverage Results

Description

Xcode previews are currently reported as uncovered code in the code coverage report.

Reproduction

Adding a SwiftUI preview (even with the DEBUG #if statement) is still reported in the code coverage, e.g.:

#if DEBUG
struct Example_Previews: PreviewProvider {
    static var previews: some View {
        Example()
    }
}
#endif

The behaviour can also be reproduced in different Spezi Swift Packages, including the diff code coverage in StanfordSpezi/SpeziAccount#6.

Expected behavior

The preview provides (or even the new #Preview macro) should be excluded from the code coverage report based on the TEST active compilation condition. The TEST active compilation condition should be propagated in the compilation for tests, and the DEBUG flag should ensure that the preview provider is built when showing a view in the Xcode preview.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Kotlin & Gradle Support

Problem

We want to start supporting a Kotlin-based version of different packages to support our Android-based projects better.

To get started with the Kotlin-based version of libraries, we need to set up a build and test pipeline with Gradel for the Template Repository.

Solution

The first setup should contain a basic structure including:

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

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.