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

已查看 22 次
跳至第一个未读帖子

Michael Carter

未读,
2020年8月25日 12:48:082020/8/25
收件人 Jenkins Developers
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?

Ullrich Hafner

未读,
2020年8月25日 15:24:402020/8/25
收件人 Jenkins Developers
This should be feasible. Here is the part of the code that fills in the results:


--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d2284677-183a-4e52-80da-0a16b07b269en%40googlegroups.com.

Tim Jacomb

未读,
2020年8月25日 17:03:242020/8/25
收件人 Jenkins Developers
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

Michael Carter

未读,
2020年8月25日 17:38:272020/8/25
收件人 Jenkins Developers
That was easier than I thought.  Thanks.
回复全部
回复作者
转发
0 个新帖子