Skip to content

Commit

Permalink
Added everything for Step 10: Test Suite and Automated Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wridgeu committed Jun 7, 2020
1 parent 3e4c986 commit 5836e74
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ <h2>Entry points</h2>
<ul>
<li><a href="test/mockServer.html">mockServer.html</a> - start the app with mock data</li>
<li><a href="test/unit/unitTests.qunit.html">unit/unitTests.qunit.html</a> - run all unit tests</li>
<li><a href="test/integration/opaTests.qunit.html">integration/opaTests.qunit.html</a> - run all integration
tests</li>
<li><a href="test/integration/opaTests.qunit.html">integration/opaTests.qunit.html</a> - run all integration tests</li>
<li><a href="test/testsuite.qunit.html">testsuite.qunit.html</a> - execute multiple tests and collect the results</li>
</ul>
<p>For more documentation please read the <a href="https://openui5.hana.ondemand.com">UI5 Developer Guide</a>.
</p>
Expand Down
13 changes: 13 additions & 0 deletions webapp/test/testsuite.qunit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE HTML>
<html>

<head>
<title>QUnit test suite</title>
<script src="../resources/sap/ui/qunit/qunit-redirect.js"></script>
<script src="testsuite.qunit.js" data-sap-ui-testsuite></script>
</head>

<body>
</body>

</html>
11 changes: 11 additions & 0 deletions webapp/test/testsuite.qunit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
window.suite = function() {
"use strict";

var oSuite = new parent.jsUnitTestSuite(),
sContextPath = location.pathname.substring(0, location.pathname.lastIndexOf("/") + 1);

oSuite.addTestPage(sContextPath + "unit/unitTests.qunit.html");
oSuite.addTestPage(sContextPath + "integration/opaTests.qunit.html");

return oSuite;
};

0 comments on commit 5836e74

Please sign in to comment.