From: Adam Keys Date: 2005-08-15T12:39:41+09:00 Subject: Re: Unit testing servers On Aug 13, 2005, at 5:04 PM, Joel VanderWerf wrote: > What about trying a simple TCP client/server in this configuration, > maybe starting with the sample/{tsvr,clnt}.rb in the ruby distribution > modified to run in two threads. I'm using single-process multithreaded > tests for TCP client/server code and it works well. It's easier to > work > in one process with the state of the whole system before, during, and > after tests. But I don't know what else might be going on with xmlrpc. I'm doing something pretty similar to this. I've got a class that knows how to start and stop Web Services servers (XMLRPC, SOAP, etc.) in their own thread. I start a fresh server in TestCase#setup and kill it in TestCase#teardown. I riffed off the soap4r test cases [1]. I'd be happy to go into more detail if you'd like. [1] http://dev.ctor.org/soap4r/file/trunk/test/soap/helloworld/ test_helloworld.rb -- ~akk http://therealadam.com