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