I’ve written up some of my experiences at developing using PlDoc and PlUnit, along with SWI-Prolog’s module system, which I’ve posted to https://www.seatavern.co.za/doctest/
Any corrections, comments or suggestions will be gratefully received.
Edit: I’ve updated the URL