K
Kaare Rasmussen
Hi
I've written some tests for my shining new server - so 'Build test' has
something to do.
Yes, I use Module::Build and Test::more.
Problem is, how do I start the server as a daemon and kill it when the
client tests are run?
In production I'd just run it with
perl -MBusiness::Bof::Server::CLI -e run -- -c t/bof.xml &
and kill it when it hs lived long enough. But this doesn't work in a Build
test.
Any ideas to daemonize the server with the test in Module::Build (and store
the pid somewhere so I can kill it again)?
I've written some tests for my shining new server - so 'Build test' has
something to do.
Yes, I use Module::Build and Test::more.
Problem is, how do I start the server as a daemon and kill it when the
client tests are run?
In production I'd just run it with
perl -MBusiness::Bof::Server::CLI -e run -- -c t/bof.xml &
and kill it when it hs lived long enough. But this doesn't work in a Build
test.
Any ideas to daemonize the server with the test in Module::Build (and store
the pid somewhere so I can kill it again)?