josecelano / cargo-pretty-test

A Rust command that prettifies the ugly `cargo test` output into a beautiful one.
https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149
135 stars 1 forks source link

fix snapshot test; redirects stderr to $GITHUB_STEP_SUMMARY #47

Closed zjp-CN closed 10 months ago

zjp-CN commented 10 months ago

This won't fix https://github.com/josecelano/cargo-pretty-test/issues/46 , but helps to solve the current failed snapshot test which is caused by random execution order and thus potential trailing newlines.

And this PR also redirects stderr to $GITHUB_STEP_SUMMARY in case any error occurs and we want to see the exact failure in that round.