Is there any way to allow running the plunit tests with set_prolog_flag(optimise,true)
? The flag disables the tests, and they are do not run.
This is really useful, for example, to see the improvement in timing of the tests with optimization on.
Is there any way to allow running the plunit tests with set_prolog_flag(optimise,true)
? The flag disables the tests, and they are do not run.
This is really useful, for example, to see the improvement in timing of the tests with optimization on.
One of (with the last version)
:- set_test_options([load(always)]).
:- set_prolog_flag(plunit_load, always).
The two ways to set plunit options apply for all options. I think we should prefer the 2nd, although that will not work for other systems (YAP, SICStus) that use the library. That (and backward compatibility) is why set_test_options/1 is kept.