From 3ace34a65af28cdef20087bd9e83b4bca2431c0b Mon Sep 17 00:00:00 2001 From: filipenevola Date: Fri, 3 Sep 2021 15:57:16 -0700 Subject: [PATCH] Using PUPPETEER_DOWNLOAD_PATH on Travis to stop Downloading Chromium on every run --- .travis.yml | 3 +++ DEVELOPMENT.md | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index a3694bbe07..25928f700a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,9 @@ cache: script: - export TEST_PACKAGES_EXCLUDE="less" - export phantom=false + # to skip Downloading Chromium on every run + # https://github.com/dfernandez79/puppeteer/blob/main/README.md#q-chromium-gets-downloaded-on-every-npm-ci-run-how-can-i-cache-the-download + - export PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium - travis_retry ./packages/test-in-console/run.sh sudo: false env: diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 1131e40009..9e96ccbee4 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -126,6 +126,14 @@ full test-suite (including the tests you added) to ensure you haven't broken any Exactly in the same way that [`test-packages` works in standalone Meteor apps](https://guide.meteor.com/writing-atmosphere-packages.html#testing), the `test-packages` command will start up a Meteor app with [TinyTest](./packages/tinytest/README.md). To view the results, just connect to `http://localhost:3000`. +If you want to see results in the console you can use: + + PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium ./packages/test-in-console/run.sh + +> [PUPPETEER_DOWNLOAD_PATH](https://github.com/dfernandez79/puppeteer/blob/main/README.md#q-chromium-gets-downloaded-on-every-npm-ci-run-how-can-i-cache-the-download) is optional but this is useful to skip Downloading Chromium on every run + +> We run our tests on Travis like above. + #### Running specific tests Specific package tests can be run by passing a `` or `` to the `test-packages` command. For example, to run `mongo` tests, it's possible to run: @@ -136,6 +144,7 @@ For more fine-grained control, if you're interested in running only the specific TINYTEST_FILTER="collection - call new Mongo.Collection" ./meteor test-packages +You can also provide the same filters for `./packages/test-in-console/run.sh` explained above. ### Running Meteor Tool self-tests