Hacker News new | ask | show | jobs
by vbezhenar 2273 days ago
Write hardware emulation for VM with any behaviour you want to test.
1 comments

Then I end up with a driver that conforms to emulated hardware and not it’s real counterpart
It seems like that's a concern with any testing strategy that mocks out some part of the system. Obviously there's no getting around actually testing against the hardware, but it seems like it could still be useful for the same reason tests with mock implementations are useful generally.
That's how unit tests works.