Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse unexpected panics #70

Merged
merged 2 commits into from
Jan 25, 2024
Merged

parse unexpected panics #70

merged 2 commits into from
Jan 25, 2024

Conversation

mrcjkb
Copy link
Contributor

@mrcjkb mrcjkb commented Jan 24, 2024

Hey 👋

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. 😅

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.

Copy link
Owner

@rouge8 rouge8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rouge8 rouge8 merged commit d945ccc into rouge8:main Jan 25, 2024
2 checks passed
@mrcjkb mrcjkb deleted the tokio-test-expression branch January 25, 2024 15:23
@rouge8
Copy link
Owner

rouge8 commented Jan 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants