JsUnit的测试套件

现在写了多个测试文件,希望JsUnit一次性运行,因此开始找如何写测试套件,还好,不难找到。

以下为测试套件的HTML源文件:

<html>
<head>
  <title>ZU_*.JS测试套件</title>
  <script type="text/javascript" src="file:///D:\Inetpub\JsUnit\app\jsUnitCore.js"></script>
</head>
<body>
<script type="text/javascript">
function suite()
{
  var testSuite = new top.jsUnitTestSuite();
  testSuite.addTestPage("file:///D:/Inetpub/ZUCon/ZU__Test.htm");
  testSuite.addTestPage("file:///D:/Inetpub/ZUCon/ZU_String_Test.htm");
  testSuite.addTestPage("file:///D:/Inetpub/ZUCon/ZU_Date_Test.htm");
  return testSuite;
}
</script>
</body>
</html>

原文地址:https://www.cnblogs.com/yzx99/p/1376773.html