Skip to content

Nightly cargo doc-test outputs "type": "report", which causes panic #90

@arpadav

Description

@arpadav

My command in CICD:

cargo +nightly test --doc --workspace --features doc-tests -- -Z unstable-options --report-time --format json

Here is an example output

// ... a lot of "type": "test" before this
{ "type": "suite", "event": "ok", "passed": 66, "failed": 0, "ignored": 0, "measured": 0, "filtered_out": 0, "exec_time": 0.230763199 }
{ "type": "report", "total_time": 0.887385934, "compilation_time": 0.647808005 }

And this line:

panic!("Unknown event type: '{}'", &type_field);

Causes a panic.

I am not sure what is best practice, to just add Event::Report, or to silently continue and ignore unknown event types, etc.?

I would love to put in a PR if design guidance is given. Let me know, thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions