Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
84 stars 12 forks source link

Set up code coverage tracking #69

Open jayvdb opened 1 year ago

jayvdb commented 1 year ago

This was discussed at https://github.com/Electron100/butane/pull/61#issuecomment-1477282606

It could be deepsource.io , or codecov.io, or maybe another similar service but there are not many that support Rust. sonarcloud doesnt, yet.

jayvdb commented 1 year ago

https://github.com/Electron100/butane/pull/96 failed because it cant access the secret.

https://github.com/Electron100/butane/tree/code-coverage passes.

The problem is that if we merged it, even though it only runs on main, all pull requests will have the github check added, and it will fail. I'll need to investigate options to avoid this.

jayvdb commented 1 year ago

I have a response for how to fix this at https://discuss.deepsource.com/t/how-to-use-deepsource-coverage-on-public-repositories/573/2 . The suggested solution isn't very useful, as the results would be misleading, but it would be better than having a failing check.