ripe-vase-85561
05/04/2022, 6:14 PMtest
run and having some trouble. Is there a convenient way to write the result summary at the end of a test run to a file or envvar, like`RESULTS=$(./pants test ::)` ? I also tried using pytest plugins to generate summary reports (like pytest-html
) and they weren’t working, possibly because the full results would have to be aggregated from the parallel test runs. I noticed that the summary (i.e. the list of 𐄂 test:test failed in 1.32s.
at the end of the output) goes to stderr so I added a 2>&1
, but then it captures other errors too. Is there an easy way to just capture the summary?witty-crayon-22786
05/04/2022, 6:28 PMripe-vase-85561
05/04/2022, 6:32 PMpytest-html
don’t work as intended when used with pants test make sense? Ideally I would just be able to use that, or another pytest results aggregator plugin.witty-crayon-22786
05/04/2022, 6:33 PMpytest-html
would support thatripe-vase-85561
05/04/2022, 6:37 PMpytest-html
) after the run completed. It says in the logs that in generates files like..
/private/var/folders/kx/_whrt0l54d9_350g0xwn9zp40000gn/T/process-executionOdmirF/foo.html
but the files aren’t there. Should they be or is it expected for them to get cleaned up?witty-crayon-22786
05/04/2022, 6:38 PMwitty-crayon-22786
05/04/2022, 6:39 PMripe-vase-85561
05/04/2022, 6:39 PMwitty-crayon-22786
05/04/2022, 6:40 PMwitty-crayon-22786
05/04/2022, 6:40 PMwitty-crayon-22786
05/04/2022, 6:41 PM-lwarn
an option? iirc @bitter-ability-32190 does that, and we should consider whether if that is helpful to a few folks we need to get quieter by defaultripe-vase-85561
05/04/2022, 6:42 PMbitter-ability-32190
05/04/2022, 6:44 PMinfo
because some options like no process cleanup and stats log info and I was tired of trying to track them down for the log level by target whitelist.
It's still a goal of mine to make pants less noisy in CI thowitty-crayon-22786
05/04/2022, 6:49 PM