Did you know? SWI-Prolog has a unit test frameworkSearch Documentation:
SWI-Prolog owl logoPredicate with_output_to/2