Attach to an already started application

It is possible to attach to an already started application instead of letting funq start and shutdown the application.

For this you need to specify in the funq.conf configuration file “socket://” followed by the IP address in the “executable” field.

[applitest]
executable = socket://localhost
funq_port = 49000

Important

In this case, funq is not responsible for starting and stopping the tested application. This must be done somewhere else, with the libFunq server integrated.

The easy way to start it manually is to start your application with the funq command line wrapper:

funq myapp myargs

then in another shell (or on another machine) just start the tests the standard way with a configuration like above.