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 2019/07/11 23:00:38 UTC

[GitHub] [cordova-android] breautek opened a new issue #768: Jasmine doesn't print all of its test output on Node 12

breautek opened a new issue #768: Jasmine doesn't print all of its test output on Node 12
URL: https://github.com/apache/cordova-android/issues/768
 
 
   # Bug Report
   
   ## Problem
   When running `npm test`, Jasmine does not print all of its output to terminal
   
   ### What is expected to happen?
   For jasmine to print all test output
   
   
   ### What does actually happen?
   See output below:
   ```
   norman@norman-ThinkPad:~/development/cordova-android$ npm test
   
   > cordova-android@8.1.0-dev test /home/norman/development/cordova-android
   > npm run eslint && npm run cover && npm run java-unit-tests
   
   
   > cordova-android@8.1.0-dev eslint /home/norman/development/cordova-android
   > eslint bin spec test
   
   
   > cordova-android@8.1.0-dev cover /home/norman/development/cordova-android
   > nyc jasmine --config=spec/coverage.json
   
   Started
   ..................................................................................F................................................................................................................................................................................................................--------------------------------|----------|----------|----------|----------|-------------------|
   File                            |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
   --------------------------------|----------|----------|----------|----------|-------------------|
   All files                       |     59.6 |    55.85 |    58.82 |    60.01 |                   |
    lib                            |     50.9 |    50.98 |    36.84 |    51.52 |                   |
     create.js                     |     50.9 |    50.98 |    36.84 |    51.52 |... 85,343,352,361 |
   
   <Rest of test output has been omitted>
   ```
   
   Jasmine has one failing test, but doesn't output failure details.
   
   
   ## Information
   The issue only occurs on Node 12. Running node 10 the tests runs and unit test failures is printed to terminal properly.
   This could be more of a `jasmine`, or a `rewire` issue but I've isolated the issue to the `run.spec.js` unit test `should print out usage and help`. Commenting out that unit test fixes the jasmine output.
   
   
   ### Command or Code
   `npm test` while running Node 12.
   
   
   
   ### Environment, Platform, Device & Versions
   Node 12
   Linux Ubuntu 18.04
   cordova-android@8.1.0-dev (master at the time of writing)
   9.0.0 (cordova-lib@9.0.1)
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
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