Skip to content
Browse files

Added checks for no tests

  • Loading branch information...
1 parent 94a5075 commit 17c4a0e788fe9a69b1063cf0f9063e28f4d9989c Kevin Malakoff committed Jun 10, 2012
Showing with 3 additions and 14 deletions.
  1. +1 −7 test/core/test.html
  2. +1 −6 test/core/test.min.html
  3. +1 −1 test/packaging/test.html
View
8 test/core/test.html
@@ -19,13 +19,7 @@ <h1 id="qunit-header">Lifecycle Test Suite</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
- <br />
-
- <script type="text/html" id="template">
- <%
- if (data) { data += 12345; }; %>
- <li><%= data %></li>
- </script>
</div>
+ <script type="text/javascript">QUnit.done = function(failures, total) {if (!total) { $('#qunit-banner').removeClass('qunit-pass').addClass('qunit-fail'); throw 'Warning: no tests run'}}</script>
</body>
</html>
View
7 test/core/test.min.html
@@ -20,12 +20,7 @@ <h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<br />
-
- <script type="text/html" id="template">
- <%
- if (data) { data += 12345; }; %>
- <li><%= data %></li>
- </script>
</div>
+ <script type="text/javascript">QUnit.done = function(failures, total) {if (!total) { $('#qunit-banner').removeClass('qunit-pass').addClass('qunit-fail'); throw 'Warning: no tests run'}}</script>
</body>
</html>
View
2 test/packaging/test.html
@@ -26,7 +26,7 @@ <h1 id="qunit-header">Lifecycle.js Test Suite - Packaging</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
- <br />
</div>
+ <script type="text/javascript">QUnit.done = function(failures, total) {if (!total) { $('#qunit-banner').removeClass('qunit-pass').addClass('qunit-fail'); throw 'Warning: no tests run'}}</script>
</body>
</html>

0 comments on commit 17c4a0e

Please sign in to comment.
Something went wrong with that request. Please try again.