From eb3377cc4565c5880a97d9a5c45fd475c61096b9 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Fri, 20 Jan 2017 17:32:53 -0800 Subject: [PATCH 1/2] speed up casperjs tests This code claimed to be required for SlimerJS, but our test suite does not currently pass on SlimerJS (and does no better or worse without this code). With PhantomJS, however, this eliminates a ~10s startup cost for each file which uses notebook_test, and all of the tests continue to pass. There are ~40 files using this, the bult of them in the js/notebook section, which should now run 5-6 minutes faster as a result. --- notebook/tests/util.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/notebook/tests/util.js b/notebook/tests/util.js index 0db1966a5..75969a7cc 100644 --- a/notebook/tests/util.js +++ b/notebook/tests/util.js @@ -78,15 +78,6 @@ casper.open_new_notebook = function () { }); }); }); - - // Because of the asynchronous nature of SlimerJS (Gecko), we need to make - // sure the notebook has actually been loaded into the IPython namespace - // before running any tests. - this.waitFor(function() { - return this.evaluate(function () { - return IPython.notebook; - }); - }); }; casper.page_loaded = function() { From f28382da758152f95422ee61528148aad04df381 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Fri, 20 Jan 2017 18:32:43 -0800 Subject: [PATCH 2/2] run the slowest tests first on Travis This should further help with the total elapsed time for running the test suite on Travis CI. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7ad49b372..fa10c6c90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,9 @@ env: global: - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH matrix: + - GROUP=js/notebook - GROUP=python - GROUP=js/base - - GROUP=js/notebook - GROUP=js/services - GROUP=js/tree