[Kde-hardware-devel] Testing programs using Solid
sniffy at rogers.com
Thu Feb 7 00:13:02 CET 2008
My program makes use of Solid for its media device detection. I'd like to
write some unit tests for the program, but I am not sure how to replace/mock
the standard Solid APIs. I have read about a "fake backend", but I do not
know how to enable it or if it would accomplish what I would like.
Ideally, I would like to be able to do something like:
- For my unit test harness, instantiate a dummy device manager. This should
only affect the current running program, not replace the system solid
- Feed the dummy manager test devices that implement the particular interface
it looks for. These test devices would be completely fake, but should look
and behave like real devices.
Is there anything available? If not, any suggestions on how I could accomplish
what I want to do?
More information about the Kde-hardware-devel