[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext commented on  JENKINS-57615  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
 Yes, I know.  Please explain how the PHPUnit-3.x parser works better than the JUnit parser for parsing JUnit logs, or at least refer me to the author or proper documentation.  This is definitely not a phpUnit issue, this bug is an issue with the PHPUnit parser in xUnit.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199543.1558537186000.9577.1558563480072%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext commented on  JENKINS-57615  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
 Yes, but this does not address my issue.  My issue is with the PHPUnit-3.x parser, which works fine except for this bug.  I am not using the JUnit parser.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199543.1558537186000.9571.1558562580134%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext commented on  JENKINS-57615  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
 Yes, I did think it was weird how things were fixed when I just switched the parser away from JUnit to PHPUnit, but hey, it works for everything except these cases.  The log types available for my version of PHPUnit is: junit, teamcity, testdox-html, testdox-text, testdox-xml, and reverse-list.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199543.1558537186000.9561.1558559220085%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext commented on  JENKINS-57615  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
 I had to switch from JUnit because it stopped parsing after we upgraded.  I think it's related to JENKINS-51919, it kept failing to parse because of the attributes PHPUnit includes such as "assertions", along with several more.  So I switched to PHPUnit-3.x (PHPUnit-4.x was not listed as an option, and my version of PHPUnit is 6, so I'm confused about that...).  I'll see if I can get one of those report files for you.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199543.1558537186000.9553.1558558620102%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext commented on  JENKINS-57615  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
 Nikolas Falco - Just uploaded my job's config.xml  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199543.1558537186000.9152.1558539180175%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57615  
 
 
  xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
Change By: 
 Captain Hypertext  
 
 
Attachment: 
 config.xml  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199543.1558537186000.9150.1558539180145%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57615  
 
 
  xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
Change By: 
 Captain Hypertext  
 

  
 
 
 
 

 
 I'm using the latest version of the xUnit plugin (2.3.3) with the PHPUnit-3.x parser. It fails on a few tests because it can't parse the xml file, and it gives a somewhat misleading error:{noformat} WARNING: The file 'myresult.xml' is an invalid file.   WARNING: At line 7261 of file:myresult.xml:cvc-complex-type.2.4.d: Invalid content was found starting with element 'system-out'. No child element is expected at this point.   FATAL: The result file 'myresult.xml' for the metric 'PHPUnit' is not valid. The result file has been skipped.{noformat}This seems to be happening because the test was skipped, but still had system output. Here's an example:{noformat}Some debug info...{noformat}In this case there's a bunch of setup happening in the base class before the test even runs (which will ultimately be skipped), which is echoing out debug information. This system output is useful for debugging, and inconsequential to the result of the tests. I can alter my tests to not output anything, but parsing shouldn't fail here, or should at least produce a meaningful error message.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message becau

[JIRA] (JENKINS-57615) xUnit fails to parse PHPUnit output when a skipped test also has system output

2019-05-22 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57615  
 
 
  xUnit fails to parse PHPUnit output when a skipped test also has system output   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Nikolas Falco  
 
 
Components: 
 xunit-plugin  
 
 
Created: 
 2019-05-22 14:59  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Captain Hypertext  
 

  
 
 
 
 

 
 I'm using the latest version of the xUnit plugin (2.3.3) with the PHPUnit-3.x parser. It fails on a few tests because it can't parse the xml file, and it gives a somewhat misleading error: 

 
 WARNING: The file 'myresult.xml' is an invalid file. WARNING: At line 7261 of file:myresult.xml:cvc-complex-type.2.4.d: Invalid content was found starting with element 'system-out'. No child element is expected at this point. FATAL: The result file 'myresult.xml' for the metric 'PHPUnit' is not valid. The result file has been skipped. 

 This seems to be happening because the test was skipped, but still had system output. Here's an example: 

 


Some debug info...
 

 In this case there's a bunch of setup happening in the base class before the test even runs (which will ultimately be skipped), which is echoing out debug information. This system output is useful for debugging, and inconsequential to the result of the tests. I can alter my tests to not output anything, but parsing shouldn't fail here, or should at least produce a meaningful error message.  

[JIRA] (JENKINS-51919) jUnit output of PHPUnit test fail to parse

2019-05-21 Thread captainhypert...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Captain Hypertext commented on  JENKINS-51919  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: jUnit output of PHPUnit test fail to parse   
 

  
 
 
 
 

 
 Yeah, this issue completely butchered my unit test parsing.  I switched to the PHPUnit-X parser and it worked pretty well, still using JUnit output.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.191405.1528896743000.7814.1558456560187%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.