Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Michael Van Canneyt via fpc-devel



On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote:



Op 29-12-2021 om 16:05 schreef Michael Van Canneyt via fpc-devel:


On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote:


I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show 
the results. But it can only handle JUnit-like xml.


Does someone already have something lying around to convert the 
fpcunit format into junit?


Is the FPCUnit format very different from the JUnit one ? Because 
fpcunit is based on junit.


Well, they are similar, but not similar enough.

fpcunit:



  
  
NumberOfFailures="6" NumberOfRunTests="29" NumberOfIgnoredTests="0">
  NumberOfErrors="0" NumberOfFailures="2" NumberOfRunTests="10" 
NumberOfIgnoredTests="0">
ElapsedTime="00:00:00.211"/>

  

  
  FPCUnit Console test runner
  29
  0
  6
  0
  00:00:16.473
  2021-12-29 15:02:48


junit:





 details about failure 



If nothing exists already, I can add it as a format to fpcunit.


Yes. I suspect you can take the existing XML listener and adapt it easily
enough...

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Joost van der Sluis via fpc-devel


Op 29-12-2021 om 16:05 schreef Michael Van Canneyt via fpc-devel:


On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote:


I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show 
the results. But it can only handle JUnit-like xml.


Does someone already have something lying around to convert the 
fpcunit format into junit?


Is the FPCUnit format very different from the JUnit one ? Because 
fpcunit is based on junit.


Well, they are similar, but not similar enough.

fpcunit:



  
  
NumberOfFailures="6" NumberOfRunTests="29" NumberOfIgnoredTests="0">
  NumberOfErrors="0" NumberOfFailures="2" NumberOfRunTests="10" 
NumberOfIgnoredTests="0">
ElapsedTime="00:00:00.211"/>

  

  
  FPCUnit Console test runner
  29
  0
  6
  0
  00:00:16.473
  2021-12-29 15:02:48


junit:





 details about failure 



If nothing exists already, I can add it as a format to fpcunit.

Regards,

Joost.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Michael Van Canneyt via fpc-devel



On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote:



Hi all,

I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show 
the results. But it can only handle JUnit-like xml.


Does someone already have something lying around to convert the fpcunit 
format into junit?


Is the FPCUnit format very different from the JUnit one ? 
Because fpcunit is based on junit.


Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Joost van der Sluis via fpc-devel

Op 29-12-2021 om 15:35 schreef Florian Klämpfl via fpc-devel:

Am 29.12.2021 um 14:50 schrieb Joost van der Sluis via fpc-devel:
I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show 
the results. But it can only handle JUnit-like xml.


Does someone already have something lying around to convert the 
fpcunit format into junit?




I assume
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/utils/fpts2junit.pp 


is not what you want?


I thought it could only handle the testsuite-output? (not fpcunit)

Regards,

Joost.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Florian Klämpfl via fpc-devel

Am 29.12.2021 um 14:50 schrieb Joost van der Sluis via fpc-devel:


Hi all,

I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show the 
results. But it can only handle JUnit-like xml.

Does someone already have something lying around to convert the fpcunit format 
into junit?



I assume
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/utils/fpts2junit.pp
is not what you want?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Joost van der Sluis via fpc-devel


Hi all,

I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show 
the results. But it can only handle JUnit-like xml.


Does someone already have something lying around to convert the fpcunit 
format into junit?


Regards,

Joost.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel