Re: Unittest xml file not valid

2022-12-09 Thread 'christop...@googlemail.com' via Jenkins Users
Hi Ullrich, could you please help me with a question some posts older: xunit seems to support a number of testDataPublishers where attachments() is one of them. Do you know any documentation how this works? Is it the same way it works for junit? I don't think so, otherwhise it should work for m

Re: Unittest xml file not valid

2022-12-07 Thread Ullrich Hafner
Ok, good to see. Then you might not need the xunit plugin at all, since the JUnit plugin supports this XML format out-of-the-box. > Am 07.12.2022 um 16:13 schrieb Fabian Cenedese : > > At 13:16 07.12.2022, Ullrich Hafner wrote: > >> The best way would be to clone the xunit plugin and feed your

Re: Unittest xml file not valid

2022-12-07 Thread Fabian Cenedese
At 13:16 07.12.2022, Ullrich Hafner wrote: >The best way would be to clone the xunit plugin and feed your file as a new >test case. Then you can directly see what is broken. I found that pytest generates a JUnit format file. With JUnit as parser insteap of CppUnit it works. So it was a user erro

Re: Unittest xml file not valid

2022-12-07 Thread Ullrich Hafner
The best way would be to clone the xunit plugin and feed your file as a new test case. Then you can directly see what is broken. > Am 07.12.2022 um 06:50 schrieb Fabian Cenedese : > > Hello > > I'm using pytest for testing and have it generate a unittest > xml file that can be read by Jenkins.

Unittest xml file not valid

2022-12-06 Thread Fabian Cenedese
Hello I'm using pytest for testing and have it generate a unittest xml file that can be read by Jenkins. This has worked fine for other jobs but now I have a new job where Jenkins doesn't like the file: 01:12:52 org.jenkinsci.plugins.xunit.service.TransformerException: The result file 'C:\Jenki