From kde-hardware-devel Wed Feb 06 23:13:02 2008 From: Chris Gow Date: Wed, 06 Feb 2008 23:13:02 +0000 To: kde-hardware-devel Subject: [Kde-hardware-devel] Testing programs using Solid Message-Id: <200802061813.02843.sniffy () rogers ! com> X-MARC-Message: https://marc.info/?l=kde-hardware-devel&m=120233964716516 Hi: 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 manager. - 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? -- chris _______________________________________________ Kde-hardware-devel mailing list Kde-hardware-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-hardware-devel