I'm having difficulty getting plunit
to execute tests in seeemingly the most trivial case. Here's my setup:
foo.pl
x(5) :- !.
not(x(6)).
foo.plt
:- begin_tests(foo).
test_something(x) :- not(x(5)).
test_seomthing_else(x) :- x(6).
:- end_tests(foo).
This works as expected in swipl:
?- [foo].
% foo compiled 0.00 sec, 3 clauses
true.
?- x(5).
true.
?- x(6).
false.
But I can't seem to get the foo.plt file to fail
?- load_test_files(foo).
% /tmp/example/foo.plt compiled into plunit 0.00 sec, 4 clauses
true.
?- run_tests.
% PL-Unit: foo done
% No tests to run
true.
The test_something_else
testcase should clearly be failing, but plunit's run_tests/0
seems unaware there are any tests to run.