in reply to solo

I am not categorically against unit tests. They are needed and perform a good function. But just for the purpose of having a conversation, let me take a contrarian stance.

When we say unit tests are easy to write, mostly we mean it is very easy to write bad tests that end up some variation of:
- Take value X
- Give me back the value X
- Is it X?

Additionally, the primary function of the vast majority of unit tests is to have to update them when the code changes.

in reply to solo

I wish I could write self contained unit tests in 10 minutes for ngscopeclient, lol.

It's been a real challenge to come up with test cases that don't depend on huge external data files (which might be NDA restricted), have easily verifiable outputs, don't depend on external hardware, etc.

Building a hardware mock good enough to write a test case against would basically mean reimplementing its firmware bug for bug in the test bench.