You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/06 06:39:03 UTC

[GitHub] [cordova-ios] erisu edited a comment on issue #643: test: use verbose spec reporter

erisu edited a comment on issue #643: test: use verbose spec reporter
URL: https://github.com/apache/cordova-ios/pull/643#issuecomment-571022988
 
 
   Any thoughts on having the `helper.js` file like this?
   
   ```
   if (process.env.CI) {
       const { SpecReporter } = require('jasmine-spec-reporter');
   
       const reporter = new SpecReporter({
           suite: {
               displayNumber: true
           },
           spec: {
               displayErrorMessages: true,
               displayStacktrace: true,
               displaySuccessful: false,
               displayFailed: true,
               displayPending: true,
               displayDuration: true
           },
           summary: {
               displayErrorMessages: false,
               displayStacktrace: false,
               displaySuccessful: false,
               displayFailed: false,
               displayPending: false,
               displayDuration: true
           }
       });
   
       jasmine.getEnv().clearReporters();
       jasmine.getEnv().addReporter(reporter);
   }
   ```
   
   The idea that I was thinking is we should only display the failed results and do not show any of the successful tests. This will help minimize the printout.
   
   Additionally, I am not entirely sure if we need this type of printout formatting locally. For sure, there is a benefit in the CI testing services.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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