Tests for setlog
- setlog
- Supported Prolog compiler (e.g. SWI-Prolog)
- Logtalk 3.34.0 or later
Assuming that both the setlog
and setlog_tests
repo directories are at the same level:
$ cd setlog_tests
$ logtalk_tester -p swi
$ cd setlog_tests/fast_tests
$ logtalk_tester -p swi
$ cd test_set_directory
$ logtalk_tester -p swi
$ cd setlog_tests
$ swilgt
?- cd(test_set_directory).
?- {tester}.
$ cd setlog_tests
$ swilgt
?- cd(test_set_directory).
?- {tester}.
...
?- tests(user, 10000)::run.
$ cd setlog_tests
$ logtalk_tester -p swi -g "logtalk_load(os(loader))" -- logtalk
# Generating code coverage reports:
```bash
$ cd setlog_tests
$ logtalk_tester -p swi -g "logtalk_load(os(loader))" -c xml -- logtalk
After, in each test set directory:
$ xsltproc -o coverage_report.html coverage_report.xml