Source: site.view [edit]
Function name: runAllUnitTests
Arguments:
Description: Runs all defined unit tests (marked with "test" tag)
Page type: webl
Render function:  
Module: site

Page source:

var tests = Wub_GetFunctionsByTag("flag.test");
var passed = [];
var failed = [];

every test in tests do
   var OK = (WubCall(test, []) ? false);
   if OK then
      passed = passed + [test]
   else
      failed = failed + [test]
   end
end;

[. "passed"=passed, "failed"=failed .];