exercism / rust-test-runner

GNU Affero General Public License v3.0
3 stars 15 forks source link

[Rust] Retrieve stderr to display error message #10

Closed mpizenberg closed 4 years ago

mpizenberg commented 4 years ago

It seems to correctly report cargo stderr in case no tests are run. To do this, I've split the cargo test command in 2. First run cargo test and redirect stdout to results.cargo and stderr to results.out. Then run transform-output with both files as arguments. I've adjusted the main rust program to read those files instead of stdin.

One note, I'm not sure why errors are reported in double.

mpizenberg commented 4 years ago

Ok I've done that in #11