maxep / spm-lcov-action Goto Github PK
View Code? Open in Web Editor NEWSwift Package Manager Code Coverage Report
License: MIT License
Swift Package Manager Code Coverage Report
License: MIT License
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
Can you update README.md and tell us how to install or use this script in Xcode project, thanks
https://stackoverflow.com/questions/63979632/run-swift-package-tests-in-release-mode-in-xcode
Currently the spm-lcov-action
always read raw report file from .build/debug
dir and testing with release build is not supported.
Is there any way if we can generate report in HTML format? Or even with lcov or txt format, I can copy data in tabular format like below. I want to upload this file in artefacts.
I saw https://github.com/mattpolzin/swift-codecov-action is doing it, but it is covering tests files in calculation.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.