taiki-e / cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Apache License 2.0
948 stars 57 forks source link

No coverage report after panic in nextest #262

Closed def- closed 1 year ago

def- commented 1 year ago

Is it expected to get no coverage report after a panic inside a test? My command is cargo llvm-cov nextest --workspace --lcov --output-path cargotest.lcov --no-fail-fast in https://github.com/MaterializeInc/materialize/

taiki-e commented 1 year ago

Could you try --ignore-run-fail flag?

    --ignore-run-fail
            Run all tests regardless of failure and generate report

            If tests failed but report generation succeeded, exit with a status of 0.
def- commented 1 year ago

Tried it and get this error: error: --ignore-run-fail is not supported for nextest

taiki-e commented 1 year ago

cargo llvm-cov nextest now supports --ignore-run-fail (v0.5.18, #263).