Did you know ... Search Documentation:
Pack doctest -- prolog/doctest.pl
PublicShow source

This module looks for fenced code blocks (using ~~~) in PlDoc comments and turns them into unit tests for the PlUnit framework each time there is a query identified by ?-

author
- Sylvain Soliman
license
- BSD-2
 gen_doctests(+File) is det
Same as gen_doctests/2 with default target the '.plt' file corresponding to File
 gen_doctests(+File, +TestFile) is det
Generate the tests from the PlDoc of File in TestFile and run them all. File must define a proper module.