ant - Unable to see test result for python scripts on jenkins -


i have written automation test scripts using pytest framework , trying run scripts using ant build on jenkins. please me see test result:

1) have done installations on jenkins (python 2.7, pytest, py, pip)

2) here ant build.xml file have created

<project name="test" default="tests" basedir="tests"> <!-- run register test case --> <target name="test_register"> <echo message="executing ${testscript}"/> <exec dir="." executable="python"> <arg line="${testscript}.py"/> </exec> </target> <!--  run test cases  --> <target name="runall"> <echo message="executing ${testscript}"/> <exec dir="tests" executable="python"> <arg line="python *.py"/> </exec> </target> </project> 

3) tried run build , gives me following output http://screencast.com/t/yxj2nlir3dn

please me correct process , setup

i'm getting python , junit tests , this seems resource

i think bit want (rather use test runner) add end of test file

if __name__ == '__main__':     import xmlrunner     unittest.main(testrunner=xmlrunner.xmltestrunner(output='test-reports')) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -