Hi Nigel, Unfortunately, I'm not famliar with the Python runtime. You may have more luck directing this at the google-appengine-java list instead.
That said, why can you not run this in a separate process? -Nick Johnson On Fri, Jun 25, 2010 at 4:34 PM, Nigel Daley <[email protected]> wrote: > Hi Nick, > > Thanks for the reply. I'm using the Java environment. Separate thread is > fine. What would be the best way to do that? Wrapping the following in a > Runnable doesn't seem to start the server. It spits out some output then > hangs. I've included appengine-agent.jar and appengine-agentImpl.jar in the > classpath. > > DevAppServer devAppServer = (newDevAppServerFactory()).createDevAppServer( > new File("war"), HOST, PORT); > devAppServer.start(); > > One thing I'm trying to accomplish is get code coverage data on my > servlets, etc. using cobertura. I believe cobertura uses VM shutdown hooks > to write the coverage data to a file. I'm seeing some differences between > my development machine (Mac OS, Apple JDK) and continuous integration > machine (RHEL5, Sun JDK). On my dev machine the file gets written, but not > on the CI machine. I'm guessing it comes down to differences between how VM > shutdown hooks are executed based on the OS signals that the KickStart VM > sends the DevAppServerMain VM on the different OSes. I could write a > servlet to return the code coverage data before the tests end, but that > seems lame :-) > > Cheers, > Nige > > On Jun 25, 2010, at 2:48 AM, Nick Johnson (Google) wrote: > > Hi Nige, > > The closest you can probably come is to start the dev_appserver in a > separate thread in the same process. Why is it important that it be running > in the same process for your test, though? Are you sure you need the entire > dev_appserver, and can't just emulate a WSGI environment? > > -Nick Johnson > > On Thu, Jun 24, 2010 at 9:39 PM, Nige <[email protected]> wrote: > >> Hi, >> >> I'm writing an integration test. I'd like to start the dev app server >> in the same process as my test. What's the best way to do that? >> >> I've tried this: >> KickStart.main(new String[] >> {"com.google.appengine.tools.development.DevAppServerMain", "--port=" >> + PORT, "--address=" + HOST, "war" }); >> but it seems to start the dev app server in another process. >> >> Thanks, >> Nige >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-appengine%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> >> > > > -- > Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. > :: Registered in Dublin, Ireland, Registration Number: 368047 > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: > 368047 > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
