Examples

Examples are a way of demonstrating how to use the system and check that it is operating correctly.

They are similar to SUnit tests in that they make assertions to confirm that the system is operating correctly, but unlike SUnit tests which typically don't return anything, they anwer an object which is useful in its own right.

Methods are marked as examples with the addition of the <gtExample> pragma.

For more information and examples see Introducing test examples and code cleaning.

For a discussion on using RemoteRunner to run examples as part of the normal development process, see Running checks as part of the development cycle.