codecov / codecov-bash

Global coverage report uploader for Codecov
https://codecov.io
Apache License 2.0
234 stars 155 forks source link

Swift on Linux doesn't work with default settings #235

Open Cyberbeni opened 4 years ago

Cyberbeni commented 4 years ago

This is my current codecov step during testing on Linux:

llvm-cov export -format="lcov" .build/debug/TypedNotificationCenterPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
bash <(curl -s https://codecov.io/bash) -J 'TypedNotificationCenter' -n 'Linux' -F 'Linux'

I think the first line should be covered by the default options. Link to full workflow: https://github.com/Cyberbeni/TypedNotificationCenter/blob/master/.github/workflows/run_tests.yml

drazisil commented 4 years ago

HI @Cyberbeni

To clarify, you are asking the bash uploader to convert the profdata to lcov for you?

Cyberbeni commented 4 years ago

Yes, just like how the script already handles the default settings output of running Swift tests via Xcode on macOS. https://github.com/codecov/codecov-bash/blob/cdd0d95b045e5dfcaa2aba9672314ade5ee941ff/codecov#L988