Giter VIP home page Giter VIP logo

xcresult-issues's Introduction

xcresult-issues

A Swift command line tool that parses xcresulttool JSON output and report on issues found.

Note that this tool just reads the ResultIssueSummaries from the top of the xcresult JSON and doesn't get all issues from the xcodebuild log output. This is usually enough in most cases but it might not find all issues that occured in your build (script build phases, linker issues, etc).

Example Usage

xcrun xcresulttool get --format json --path MyProject.xcresult | xcresult-issues --format github-actions-logging

The above command takes the results written out by xcresulttool and formats them as log messages for GitHub Actions.

Suppressing Warnings & Warnings as Errors

Warnings can be supressed (or raised up to errors) using regular expressions. To do this you can supply a YML file on the command line (via the -w argument) that contains regularexpress matching rules. The format is as follows:

rules:
  - regex: ^Main actor-isolated static property '(_previews|_platform)' cannot be used to satisfy nonisolated protocol requirement$
    action: suppress
  - regex: ^Cannot form key path that captures non-sendable type 'KeyPath<[\w\.]+, [\w\.]+>'$
    action: error

The available actions are suppress to suppress the output of the warning and error to turn the warning into an error.

Exit Code

When the -e command-line flag is used, if xcresult-issues finds any errors or test failures it will exit with a non-zero exit code.

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.