Module:Testharness/testcases

-- Test cases for testharness -- Need to add more later

local testHarness = require("Dev:Testharness") local ScribuntoUnit = require('Module:ScribuntoUnit') local suite = ScribuntoUnit:new local utility = require("Dev:Utility")

function suite:testTestSuite local currframe = utility.makePseudoFrame(mw.getCurrentFrame) frame = currframe:newChild {args={testpage="Links"}} self:assertTrue(testHarness.run_tests(frame)) frame = currframe:newChild {args={testpage="pageinfo"}} self:assertTrue(testHarness.run_tests(frame)) end return suite