[JIRA] (JENKINS-61115) Boost test schema wrongfully rejects testsuite-scope exceptions

11 views
Skip to first unread message

mathias@gaunard.com (JIRA)

unread,
Feb 17, 2020, 8:36:03 AM2/17/20
to jenkinsc...@googlegroups.com
Mathias Gaunard created an issue
 
Jenkins / Bug JENKINS-61115
Boost test schema wrongfully rejects testsuite-scope exceptions
Issue Type: Bug Bug
Assignee: Nikolas Falco
Components: xunit-plugin
Created: 2020-02-17 13:35
Priority: Minor Minor
Reporter: Mathias Gaunard

If an exception gets thrown as part of constructing a fixture, the Exception tag appears directly within TestSuite.

The schema defined by xunit-plugin only allows that at the TestCase level, which is wrong.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

nfalco79@hotmail.com (JIRA)

unread,
Feb 17, 2020, 11:25:02 AM2/17/20
to jenkinsc...@googlegroups.com
Nikolas Falco commented on Bug JENKINS-61115
 
Re: Boost test schema wrongfully rejects testsuite-scope exceptions

Which version of tools are you using? Could you attach the report file?

mathias@gaunard.com (JIRA)

unread,
Feb 17, 2020, 5:33:03 PM2/17/20
to jenkinsc...@googlegroups.com

The bug is still present in HEAD.

https://github.com/jenkinsci/xunit-plugin/blob/cbc073cf75b398d278a159c5819970781c3ef12b/src/main/resources/org/jenkinsci/plugins/xunit/types/boosttest-1.5.0.xsd#L155

Clearly the choice here is missing a bunch of options?

I cannot freely share real testcases, but as I described it's trivial to produce one. <TestSuite name="foo"><Exception>FooException</Exception></TestSuite> should do I suppose?

nfalco79@hotmail.com (JIRA)

unread,
Feb 25, 2020, 8:06:03 AM2/25/20
to jenkinsc...@googlegroups.com

Could you share the generated report? You can replae you company package/file path with other one (com.acme....)

mathias@gaunard.com (JIRA)

unread,
Feb 26, 2020, 6:06:11 AM2/26/20
to jenkinsc...@googlegroups.com

I already gave an example above.

I have also done a pull request if that helps: https://github.com/jenkinsci/xunit-plugin/pull/83

nfalco79@hotmail.com (JIRA)

unread,
Feb 27, 2020, 2:49:02 AM2/27/20
to jenkinsc...@googlegroups.com

You can create an ad hoc cpp test case to that produce the report like you have.

Mathias Gaunard: <TestSuite name="foo"><Exception>FooException</Exception></TestSuite> should do I suppose?

I would not suppose, Something generated by the tool is used to also map testsuite exception by XSLT

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages