Took me a while to figure out how to debug a hanging Rust test. The best invocation seems to be:
$ RUST_TEST_THREADS=1 cargo test -- --nocapture
This will print test names before execution, so you can see where you're hanging. --nocapture lets you see print output immediately.
miniblog.
Related Posts
I've added an eval button to the website of my programming language!
It's a been a lot of work to lock down appropriately. It still needs some UI polish but it's so nice to be able to try snippets immediately.
"After I linked difftastic, one of my friends immediately used difftastic to find a stealthy bug, five stars!"
I'm still trying to find a sweet spot between 'show the general syntax' and 'show a concrete example' in the CLI docs for difftastic.
https://difftastic.wilfred.me.uk/usage.html
I'm currently showing the syntax, immediately followed by an example. What do you think?


