Hi folks! just curious if there is a good way to c...
# general
g
Hi folks! just curious if there is a good way to capture the test runtimes after pants has finished running all its tests. I'm talking about the below
Copy code
āœ“ a/b/c/foo_test.py:tests succeeded in 10.68s.
āœ“ x/y/z/bar_test.py:tests succeeded in 3.76s.
I was thinking of capturing stdout and parsing that, but I was just curious if there was anything within pants that I could leverage to make this simpler.
hmmm so I see these messages are actually directed to stderr. However if I capture them in stderr and a test fails, the details of the test failure is lost. Is there somewhere I can read about the details of where pants directs output?
c
Take a look at:
Copy code
[test]
report = true
To generate a file with the test timings.
g
oh wow, this is very granular. this is great! thanks