tirr-c / jxl-oxide

Pure Rust implementation of JPEG XL decoder
Apache License 2.0
308 stars 13 forks source link

More tests? #53

Open saschanaz opened 1 year ago

saschanaz commented 1 year ago

This doesn't seem to have many tests 👀

EugeneVert commented 1 year ago

Thanks for your interest in jxl-oxide!

We currently running tests against the libjxl's conformance repository and have several custom regression tests. https://github.com/tirr-c/jxl-oxide/tree/main/crates/jxl-oxide/tests

Do you have any suggestions as to what tests would be desirable?

saschanaz commented 1 year ago

Thanks, I totally missed that part!

Still I see many test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s messages in the CI job and those files indeed have no unit tests. Would be great to have some!

I wonder how the current test coverage is, is there some setup to track the coverage?

tirr-c commented 1 year ago

Currently we have:

I think most of the code are covered by the integration tests, so I didn't write unit tests that much. However I do think there are some components that would benefit from unit tests, such as entropy decoder. (Contributions are welcome!)

There is no code coverage setup, but one can collect coverage by following the documentation.

saschanaz commented 1 year ago

There is no code coverage setup, but one can collect coverage by following the documentation.

Any intent to use something like Codecov to track the coverage? I'm considering to migrate to this from libjxl (for https://github.com/saschanaz/jxl-winthumb) and having to build to get the current coverage is not ideal to me.

tirr-c commented 1 year ago

Created #55 to track it. Thanks for the suggestion!

tirr-c commented 1 year ago

Coverage can be checked here. I hope this helps!