rouge8 / neotest-rust

Neotest adapter for Rust, using cargo-nextest.
MIT License
91 stars 29 forks source link

parse unexpected panics #70

Closed mrcjkb closed 9 months ago

mrcjkb commented 9 months ago

Hey :wave:

When a test panics (not due to an assertion failure - in my case due to an unwrap on Err), neotest-rust can't parse the output.

So I added another attempt at parsing in case message == nil. It's a bit hacky, but seems to work, at least in my case. :sweat_smile:

I've added a spec in which I copied the test output of my test case that was failing. Unfortunately, I can't run make test locally, because I'm on NixOS and it tries to install the tree-sitter parser to the nix store.

rouge8 commented 9 months ago

Reverting this because I believe it was actually fixed by #64!