News for hackers. Stuff that matters.
Re:Developer's block by ChrisMarshallNY on Saturday August 23, 2025 @06:38PM (#44999685)
Well, I thought I explained it well. Frankly, I'm shocked that folks don't know what test harnesses are. They are one of the oldest constructs in Software Engineering. In the days of old, we often called them "Unit Tests."

If you want some concrete examples, here you go:

Here's my "Spinner" widget:

https://github.com/RiftValleySoftware/RVS_Spinner

This is the four test harness apps:

https://github.com/RiftValleySoftware/RVS_Spinner/tree/main/...

This is my checkbox widget:

https://github.com/RiftValleySoftware/RVS_Checkbox

Here's the test harness app:

https://github.com/RiftValleySoftware/RVS_Checkbox/tree/main...

There's more, but these should be enough to illustrate the point.

Re:Developer's block by chrisweekly on Monday August 25, 2025 @10:51AM (#45014509)
Great examples, thanks for sharing links to a real project. But I'm confused by your assertion, > "In the days of old, we often called them "Unit Tests."

My understanding is, test harnesses are standalone wrapper apps dedicated to testing, vs more granular unit tests which are traditionally colocated with (eg, files alongside) app src code in a given project. Care to elucidate?