0

I have python unittest tests using Selenium 2 and I can run it fine on my computer but now I want to use it with Jenkins. In the "execute shell", I call my script that runs all my Selenium tests but even though I get an Error or Fail for the tests, Jenkins says "Finished: SUCCESS" in the console output and thinks it passed in the console output.

1) Why does it think it passed? How can I let Jenkins detect it actually failed?

2) How can I generate an XML report of the test results so that it is compatible with JUnit and Jenkins? (testrunner?)

Thanks!

4

1 回答 1

2

对于 2,您可以使用nosetests --with-xunit

于 2012-08-03T14:13:53.963 回答