Skip to content

Testing

pmoura edited this page Jan 14, 2013 · 47 revisions

Two sets of unit tests are distributed with Logtalk. One in the tests subdirectory and another in the examples subdirectory. you can run both sets in a POSIX system by typing:

$ cd $LOGTALKUSER/tests
$ logtalk_tester -p <back-end Prolog compiler>
...
$ cd ../examples
$ logtalk_tester -p <back-end Prolog compiler>
...

To identifiers for the supported back-end Prolog compilers can be listed by typing:

$ logtalk_tester -h
...

Support for running the unit tests on Windows is forthcoming.

Clone this wiki locally