--
You received this message because you are subscribed to the Google Groups "pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel...@googlegroups.com.
To post to this group, send email to pylons...@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.
I have a Pyramid app called tdddemoPyramidApp.py, for which I wrote a bunch of integration tests using PhantomJS.I want those tests to be run by the Jenkins Continuous Integration server whenever there is a new commit.I have managed to get this mostly working, except for one thing.Before I run the the unit tests, I need restart the tdddemoPyramidApp.py script so that it runs the most recent version of the app. When I run the tests outside of Jenkins, I just Ctrl-C the script and re-issue the command python tdddemoPyramidApp.
Before I run the the unit tests, I need restart the tdddemoPyramidApp.py script so that it runs the most recent version of the app. When I run the tests outside of Jenkins, I just Ctrl-C the script and re-issue the command python tdddemoPyramidApp.Not sure how to get Jenkins to do this. I guess I could write a script that looks for a process that is running tdddemoPyramidApp.py and kills it before restarting it, but I was wondering if there is an easier way.
Assuming your tests are written in Python, then I'd recommend starting a webtest.http.StopableWSGIServer [1] as part of your test setup.