https://pantsbuild.org/ logo
#general
Title
# general
h

high-yak-85899

02/01/2022, 12:43 AM
Is there any way to get a summary output style like bazel has?
Copy code
INFO: Elapsed time: 715.011s, Critical Path: 105.07s
INFO: 624 processes: 4 remote cache hit, 670 linux-sandbox.
INFO: Build Event Protocol files produced successfully.
INFO: Build completed, 1 test FAILED, 624 total actions
It's way nicer than seeing the result of every test as pants does it (it seems like
--test-ouput
just controls details of each executed test and not limiting the information dump to the terminal).
h

hundreds-father-404

02/01/2022, 1:32 AM
That's a good point that the summary for
./pants test
gets pretty verbose, especially in CI, as it's O(f) where f is # test files In your opinion, is it fine with
fmt
and
lint
, where it's O(t) where t is # of tools?
h

happy-kitchen-89482

02/01/2022, 1:33 AM
Should be very easy to get
test
to emit a summary. @high-yak-85899 would you be open to putting up a PR? We can walk you through it
h

high-yak-85899

02/01/2022, 1:53 AM
I actually haven't used
fmt
or
lint
yet. I personally really like that bazel just leaves it as a short summary + failures. Anything that scales as the number of tests grows seems not nice for regular developer interaction. A PR sounds fun. Will take me some time to get around to it, though.
h

happy-kitchen-89482

02/01/2022, 2:01 AM
This is great feedback