Hi,

Just do normal unittest module implementation:
https://docs.python.org/2/library/unittest.html

and add the xml xunit test module:
https://github.com/xmlrunner/unittest-xml-reporting/tree/master/

Then into Jenkins just run the unit test from the console invoke (bat "" or 
sh ""). Ex (this depends on you script implementation):
sh "python mytestScript.py -o outputdir/test.xml"

Parse the xunit result with the JUnitResultArchiver:
step([$class: 'JUnitResultArchiver', testResults: 'outputdir/*.xml']);

Jerome

On Thursday, October 6, 2016 at 8:23:59 AM UTC-4, Mohan Radhakrishnan wrote:
>
> Hi,
>        I am looking for some advice related to development of Python 
> scripts that interact with Jenkins API's. How do you test the Jenkins 
> integration in the IDE ? My goal is to check the build status and act on 
> it. Can Jenkins run a mock build in the IDE to test my Python code ?
>
> How is this done ?
>
>
> Thanks,
> Mohan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9bad2d85-82b6-44e7-9051-a95c345be164%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to