<#21284 pants 2.21: XML files for unit tests execu...
# github-notifications
c
#21284 pants 2.21: XML files for unit tests executed with pytest are no longer generated Issue created by foobar-coder When I was using v2.6, I could run
pants test
with the command line below and
pytest
would generate an XML file for each test it executed: ./pants test ... --pytest-junit-xml-dir=dist/junitxml ... This is useful to have for continuous integration systems. The XML files are parsed and the number of tests executed/passed/failed are shown by the C.I. system. However,
pants
eliminated that option (not sure when, but 2.17.0 no longer had it). The closest equivalent I could find in 2.21.1 is this: pants test ... --pytest-args="--junit-xml=dist/junitxml" Unfortunately, it does not generate any XML file or even creates the
junitxml
directory Is there a different option that works in v2.21.1? pantsbuild/pants