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

melodic-thailand-99227

02/13/2022, 6:01 PM
I'm running
pants test
in CI and I want to get the list of failed test in a structured output, but also have the dynamic UI in CI. Is it possible?
f

fast-nail-55400

02/13/2022, 6:23 PM
--test-xml-dir
will output junit.xml format structured output
👍 1
b

busy-vase-39202

02/14/2022, 10:09 PM
This is handy. I notice it isn't in Pants docs (or Junit docs). Where is a good place it can be added to benefit our users?
f

fast-nail-55400

02/14/2022, 10:14 PM
It is a Pants advanced option.
./pants help-advanced test
shows it. Are we not exposing advanced options in the docs?
b

busy-vase-39202

02/14/2022, 10:53 PM
@hundreds-father-404 do you know why this doesn't show up in the docs?
h

hundreds-father-404

02/14/2022, 10:54 PM
b

busy-vase-39202

02/15/2022, 12:25 AM
I can see how it's implicit to
Copy code
[test]
xml_dir = "dist/test_results"
but for a newcomer it's not obvious that a
--test-xml-dir
flag is available and site search doesn't find it.
4 Views