Skip to content
Discussion options

You must be logged in to vote

Hi,
thanks for checking out mantra.

Getting test and coverage data in a format mantra understands is unfortunately a bit tricky at the moment. You need to follow the JSON schema defined by the struct here https://github.com/mhatzl/mantra/blob/main/schema/src/coverage.rs

It is not just taking code coverage, but also test output. That's why you see "test-run" in your error.

I am working on a new mantra version that will be able to take in JUnit and Cobertura formats. This will allow you to use cargo-nextest and llvm-cov/grcov. Hopefully I have this ready in a few months. Until then, you can try to convert your data to fit the current schema.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Deep-co-de
Comment options

@mhatzl
Comment options

Answer selected by Deep-co-de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants