-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jasmine doesn't print all of its test output on Node 12 #768
Comments
Thanks @breautek, I see the same thing on my mac. If we would add Node.js 12, I tried in PR #770, this test failure does not seem to trigger a build failure on AppVeyor CI. (Travis CI also succeeds with the ignored failure on my own fork.) I would highly recommend you consider trying out the more verbose test reporter, like I think we did in cordova-lib, cordova-common, and cordova-ios. |
I tried using I suspect it has something to do with NodeJS 12 + |
Interesting, thanks. I hope someone will get a chance to investigate it further, does not sound so good. I also hope someone will get a chance to look further into getting I would like to express our appreciation so far for the efforts you have taken to understand, investigate, and resolve some recent issues. |
I think this issue is related to jhnns/rewire#167 In Node 10: We have...
And in Node 12...
You'll notice that |
https://github.com/apache/cordova-android/blob/8.0.0/spec/unit/run.spec.js#L204-L207
Argh! It looks like they started discussing a solution in jhnns/rewire#167 (comment). Does this make sense? I wonder if we should just wait for the to fix it on rewire, or if we should consider some kind of a temporary workaround in the test suite? Any ideas or other input from @raphinesse? |
So I discovered that
appears to work. Instead of "rewiring" |
At least we can see why it is failing now! hahah
I agree, but I think that will be a waiting game for the rewire people. The workaround should suffice for now. |
Bug Report
Problem
When running
npm test
, Jasmine does not print all of its output to terminalWhat is expected to happen?
For jasmine to print all test output
What does actually happen?
See output below:
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 arewire
issue but I've isolated the issue to therun.spec.js
unit testshould 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
The text was updated successfully, but these errors were encountered: