Test Results (Junit) is there an entry method I can use over generating xml?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Test Results (Junit) is there an entry method I can use over generating xml?

Michael Carter
Basically I have a bunch of SQL statements in my plugin I was going to write to a junit xml file then use a junit post step for uploading... but then thought... Can I some how combine them?

Is there a method I can call that adds Junit Tests cases, that I can call for each sql so I can report the "test" as failed/success based on it's execution?

Or is still the best way to have my command generate an xml file then feed into the junit command?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Test Results (Junit) is there an entry method I can use over generating xml?

Ulli Hafner
This should be feasible. Here is the part of the code that fills in the results:


Am 25.08.2020 um 18:48 schrieb Michael Carter <[hidden email]>:

Basically I have a bunch of SQL statements in my plugin I was going to write to a junit xml file then use a junit post step for uploading... but then thought... Can I some how combine them?

Is there a method I can call that adds Junit Tests cases, that I can call for each sql so I can report the "test" as failed/success based on it's execution?

Or is still the best way to have my command generate an xml file then feed into the junit command?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/301B7278-B410-4C25-A52F-87836F483380%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Test Results (Junit) is there an entry method I can use over generating xml?

Tim Jacomb
There's a very early version of pluggable storage available that you can use with a SQL backend instead of XML


The API may change in incompatible ways, and it's not complete yet.
But might be something to look at

Thanks
Tim

On Tue, 25 Aug 2020 at 20:24, Ullrich Hafner <[hidden email]> wrote:
This should be feasible. Here is the part of the code that fills in the results:


Am 25.08.2020 um 18:48 schrieb Michael Carter <[hidden email]>:

Basically I have a bunch of SQL statements in my plugin I was going to write to a junit xml file then use a junit post step for uploading... but then thought... Can I some how combine them?

Is there a method I can call that adds Junit Tests cases, that I can call for each sql so I can report the "test" as failed/success based on it's execution?

Or is still the best way to have my command generate an xml file then feed into the junit command?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/301B7278-B410-4C25-A52F-87836F483380%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BidC%3DhAcv8SCSDzBLY5c_dvETnpF3PitSXidEWoqe%2BS43Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Test Results (Junit) is there an entry method I can use over generating xml?

Michael Carter
In reply to this post by Ulli Hafner
That was easier than I thought.  Thanks.

On Tuesday, August 25, 2020 at 3:24:40 PM UTC-4 [hidden email] wrote:
This should be feasible. Here is the part of the code that fills in the results:


Am 25.08.2020 um 18:48 schrieb Michael Carter <[hidden email]>:

Basically I have a bunch of SQL statements in my plugin I was going to write to a junit xml file then use a junit post step for uploading... but then thought... Can I some how combine them?

Is there a method I can call that adds Junit Tests cases, that I can call for each sql so I can report the "test" as failed/success based on it's execution?

Or is still the best way to have my command generate an xml file then feed into the junit command?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ed18a844-09dd-498f-8da9-f34619a92355n%40googlegroups.com.