[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-hardware-devel
Subject: [Kde-hardware-devel] Testing programs using Solid
From: Chris Gow <sniffy () rogers ! com>
Date: 2008-02-06 23:13:02
Message-ID: 200802061813.02843.sniffy () rogers ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic