5

One part of an application I am writing uses libusb to communicate with a device and I am having a hard time testing my code. Is there a framework to create fake usb devices or another way to mock libusb in order to better automate testing, to be able to test on a CI, reproduce edge cases etc?

fakedrake
  • 6,528
  • 8
  • 41
  • 64

1 Answers1

0

umockdev provides tools to record the properties and behaviour of particular devices, and to run a program or test suite under a test bed with the previously recorded devices loaded.

Homepage , source code and example

Abdullah Farweez
  • 851
  • 2
  • 11
  • 25