Giter Site home page Giter Site logo

spm-lcov-action's People

Contributors

dependabot[bot] avatar maxep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spm-lcov-action's Issues

Does not work with iOS only build or xcodebuild cmdline

I attempted to use this package to get the code coverage results but got an error that it cannot find the input file.

Run maxep/[email protected]
/Users/runner/work/_actions/maxep/spm-lcov-action/0.3.1/cov.sh -f lcov -o ./coverage/lcov.info
find: /Users/runner/work/FileBrowserSUI/FileBrowserSUI/.build/x86_64-apple-macosx/debug: No such file or directory
error: /Contents/MacOS/.xctest: Failed to load coverage: No such file or directory
error: /Contents/MacOS/.xctest: Failed to load coverage: No such file or directory
error: Could not load coverage information
Error: The process '/Users/runner/work/_actions/maxep/spm-lcov-action/0.3.1/cov.sh' failed with exit code 1

Here are the two command lines I use to create the Swift Package and test it.

swift package generate-xcodeproj

xcodebuild test -destination 'platform=iOS Simulator,name=iPad (8th generation)' -scheme 'FileBrowserSUI-Package' -disableAutomaticPackageResolution -enableCodeCoverage YES

I have a test dependency with InspectView so I need to use xcodeBuild to fix the package dependencies.

On my home system the generated code coverage file is located in
/Library/Developer/Xcode/DerivedData/FileBrowserSUI-aqtizujfxewhrnexxvzqkjpmoirm/Logs/Test/Test-FileBrowserSUI-Package-2020.12.31_12-06-31--0500.xcresult

how to use this script?

Can you update README.md and tell us how to install or use this script in Xcode project, thanks

Breaks on macOS 12 runners

Run maxep/[email protected]
  with:
    output-file: ./pr/lcov.info
    file-format: lcov
  env:
    TOOLCHAINS: swift 5.7
/Users/runner/work/_actions/maxep/spm-lcov-action/0.3.1/cov.sh -f lcov -o ./pr/lcov.info
/Users/runner/work/_actions/maxep/spm-lcov-action/0.3.1/cov.sh: line 35: llvm-cov: command not found
/Users/runner/work/_actions/maxep/spm-lcov-action/0.3.1/cov.sh: line 41: llvm-cov: command not found
Error: The process '/Users/runner/work/_actions/maxep/spm-lcov-action/0.3.1/cov.sh' failed with exit code 127

Working image: https://github.com/actions/runner-images/blob/macOS-11/20221018.1/images/macos/macos-11-Readme.md
Failing image: https://github.com/actions/runner-images/blob/macOS-12/20221018.2/images/macos/macos-12-Readme.md

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.