[ library(test_util) | Reference Manual | Alphabetic Index ]

test(+File, +Option)

Runs all the test patterns in File.

Description

Runs all the test patterns in File. Option is either 'call' (the default) or 'compile'. When 'call' is chosen, every test goal gets executed simply by metacall using call/1. When 'compile' is chosen, every test goal gets compiled into an auxiliary predicate (with all compile-time transformations applied), which in turn is then executed.

Modules

This predicate is sensitive to its module context (tool predicate, see @/2).

See Also

test_info / 2, should_give / 2, should_fail / 1, should_throw / 2, should_raise / 2, should_give / 3, should_fail / 2, should_throw / 3, should_raise / 3