-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I (unit)test the CaptureDevices? #279
Comments
Thanks @NeoMorfeo for this post! I think we need a way to test our code and due to it doesn't use interfaces it is so hard to have a nice way to test |
@kayoub5 and I have discussed dropping the singleton use in CaptureDeviceList etc but changes here on master have yet to be made. Suggestions for improvements are welcome. 6.x is coming soon so now is a good time to propose API altering changes. |
The way I see it, we already have the For the original request, You can:
|
I wish to knwo if there is any way to mock the CaptureDevices (CaptureDeviceList).
I need that to test several code, that relays on the detection of the devices, but, i can't make a mock or substitute.
Can you provide some info about it?
thanks in advance.
The text was updated successfully, but these errors were encountered: