diff --git a/README.md b/README.md index c16e3ba8..2cdc0732 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,18 @@ The following options can be used: Now visit [http://localhost:8181/ide.html](http://localhost:8181/ide.html) to load Cloud9. +#### Running Tests #### + +Run server side tests with: + + npm run test + +Run client side tests with: + + npm run ctest + +Then visit [http://localhost:8181/static/test](http://localhost:8181/static/test) in your browser. + #### Contributing #### We actively encourage and support contributions. We accept pull requests to the core as well as to any of the open source plugins and libraries that we maintain under the c9 organization on GitHub. diff --git a/plugins/c9.vfs.standalone/www/test.html b/plugins/c9.vfs.standalone/www/test.html index 6df502d7..11d99d24 100644 --- a/plugins/c9.vfs.standalone/www/test.html +++ b/plugins/c9.vfs.standalone/www/test.html @@ -189,7 +189,7 @@ if (!files.length && (location.search === "?" || location.search === "")) { var disabled = tests.blacklist.slice().sort(); var enabled = tests.list.slice().sort(); - var all = "run all"; + var all = "run all"; var initErr = document.getElementById('jserror').innerHTML; setupDom("" + "

Enabled tests" + all + "

" @@ -376,8 +376,11 @@ c9Test.run = run; c9Test.runAll = runAll; c9Test.allFiles = allFiles; + if (location.href.match(/\?runAllTests/)) { + files = allFiles; + } c9Test.find = function(r) { - return c9Test.allFiles.filter(function(x) { return x.match(r) }); + return c9Test.allFiles.filter(function(x) { return x.match(r); }); }; c9Test.reRun = c9Test.run; // wait for test.js to initialise chai