EnsureTestSite (open)

Setup a test site. It will be created as /webhare-tests/ and use WebHare backend:/testoutput/ as output

Syntax

LOADLIB "mod::system/lib/testframework.whlib";

OBJECT FUNCTION EnsureTestSite(STRING sitename, RECORD options)

Parameters

STRING sitename

Subfolder to use. Must be of the form . (use xyz.testsite if you have to)

RECORD options

Options

BOOLEAN recyclecontents

If set, recycles the contents but not the site itself if it already exists

BOOLEAN recyclesite

If set, recycles the site if it already exists

STRING webdesign

Webdesign the testsite should have

Return value

OBJECT

The site object