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 sitenameSubfolder to use. Must be of the form . (use xyz.testsite if you have to)
RECORD optionsOptions
BOOLEAN recyclecontentsIf set, recycles the contents but not the site itself if it already exists
BOOLEAN recyclesiteIf set, recycles the site if it already exists
STRING webdesignWebdesign the testsite should have
Return value
OBJECTThe site object