Skip to content
Browse files

conditional running for server tests

  • Loading branch information...
1 parent 07a28fb commit 7192ee8379b36f27e221c2e9f31174dc846a8a2f @wilkerlucio wilkerlucio committed Feb 29, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 test/index.html
  2. +1 −0 test/src/servers_test.coffee
View
1 test/index.html
@@ -16,6 +16,7 @@ <h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
+ <a href="index.html">Run without servers</a> - <a href="index.html?servers=true">Run with servers</a>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
View
1 test/src/servers_test.coffee
@@ -1,4 +1,5 @@
define ["cs!filesafr/servers_list", "cs!test_helper"], (servers, h) ->
+ return unless location.href.match /\?.*servers=true.*$/
module "Servers"
for server in servers

0 comments on commit 7192ee8

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