"I have a problem, after running the tests, initialization is called. How can I determine in the code that these are tests and not call initialization?
I usually put my tests in a separate file, and run them by something like this:
swipl -g run_tests -t halt test_XXX.pl
Any initialization code (defined using the initialization/2 directive) can be disabled by using the -l
option. This is documented in the command line section of the manual.
I do the same.
I do not quite understand the -l option which file I need to specify