You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/11/24 17:37:56 UTC

[cordova-paramedic] 03/03: some comments what the script is doing

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-misc
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git

commit 8efb65db8dad5cd4545d10c57f68b49693a31ba2
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sat Nov 24 18:31:59 2018 +0100

    some comments what the script is doing
---
 lib/paramedic.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/paramedic.js b/lib/paramedic.js
index 016de98..9bc7a26 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -70,18 +70,21 @@ ParamedicRunner.prototype.run = function () {
     self.checkConfig();
 
     return Q().then(function () {
+        // create project and prepare (install plugins, setup test startpage, install platform, check platform requirements)
         self.createTempProject();
         shell.pushd(self.tempFolder.name);
         return self.prepareProjectToRunTests();
     })
     .then(function () {
         if (self.config.runMainTests()) {
+            // start server
             var noListener = (self.config.getPlatformId() === util.BROWSER) && self.config.shouldUseSauce();
             return Server.startServer(self.config.getPorts(), self.config.getExternalServerUrl(), self.config.getUseTunnel(), noListener);
         }
     })
     .then(function (server) {
         if (self.config.runMainTests()) {
+            // configure server usage
             self.server = server;
 
             self.injectReporters();
@@ -92,6 +95,7 @@ ParamedicRunner.prototype.run = function () {
 
             logger.normal('Start running tests at ' + (new Date()).toLocaleTimeString());
         }
+        // run tests
         return self.runTests();
     })
     .timeout(self.config.getTimeout(), 'Timed out after waiting for ' + self.config.getTimeout() + ' ms.')
@@ -101,6 +105,7 @@ ParamedicRunner.prototype.run = function () {
         // if we do --justbuild  or run on sauce,
         // we should NOT do actions below
         if (self.config.getAction() !== 'build' && !self.config.shouldUseSauce()) {
+            // collect logs and uninstall app
             self.collectDeviceLogs();
             return self.uninstallApp()
                 .fail(function () {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org