KokaKiwi / rust-hex

A basic crate to encode values to hexadecimal representation. Originally extracted from rustc-serialize.
https://crates.io/crates/hex
Apache License 2.0
201 stars 55 forks source link

Code Coverage #36

Closed Luro02 closed 3 years ago

Luro02 commented 4 years ago

I think it could be useful to run code coverage on this repository, to figure out where tests can be improved :)

@KokaKiwi would have to register on codecov.io or coveralls and the ci would run over the entire repository and list some places, that the tests do not cover. Sometimes it has some mismatches, but it works most of the time.

I would recommend to use https://codecov.io/ in combination with cargo tarpaulin (tarpaulin is way better, than kcov)

For reference, you can look at this repository https://github.com/sile/hls_m3u8 and this is the .travis.yml https://github.com/sile/hls_m3u8/blob/master/.travis.yml

The only thing I would change is to add an --ignore-panics flag, maybe you could also add caching to improve compilation speed? (the linked .travis.yml has it too). I would not run this on every target and only on a single one (stable or nightly, but when you want to include doc examples in the coverage, you have to use nightly)