-
Notifications
You must be signed in to change notification settings - Fork 13
Pending tests on server don't display in reporter #42
Comments
Probably related, lots of this showing up in my console when I run my tests
this is on Meteor Meteor 1.3.2.4 |
Hello @fignuts thank you for reporting this issue. The package it's working as expected for me, so I couldn't reproduce this issue. According to the error shown by If you want to doble-check that it's a package error, you can use Todos example project to recreate the issue. I hope this help. Let me know any progress. |
I have only one .test.js file in my project with the following contents. The file imports nothing and is the only test file in my project.
This is the console output I get: https://gist.github.com/fignuts/40163fab06d6405ea6c521519b78cbd4 The tests run fine if I clone the Todos example project. I am not really sure how to proceed debugging this. There seems to be something in my project that conflicts with meteor-mocha but I am not sure how to find it. |
Thanks @fignuts It's hard find this way. Are you using the latest package version ( |
Yes I am using the latest version |
I've been having this same issue. As far as I know, none of my application code is running outside of a Fiber, and all of my test code is fairly standard. While my tests and web reporter are running just fine, these STDERR logs are fairly annoying. I'd love to figure out what's going on here. |
@fignuts @pcorey Can you make a repo that replicate this issue?, It's difficult to know what is problem. |
@tmeasday, any clues? |
@fignuts and @pcorey, what OS are you own and which version of meteor? |
OSX El Capitan. I tried to build a reproduction from scratch, but couldn't recreate the issue. I'll try to strip down my current project to a minimal reproduction. |
What is the underlying mocha wrapping library you are using these days? |
It looks like the culprit here is the @fignuts - Are you using reactive-publish? |
Yes, I am using that package. |
So it seems it's a reactive-publish bug. @pcorey and @fignuts do you get this stderr outputs in your apps as well, i.e. with meteor run, not meteor test? |
I'm a noob, but I found this http://stackoverflow.com/questions/36593111/meteor-1-3-server-testing and my reporter is not working at all. I can't tell if this is related, sorry if it's not. OSX El Capitan 10.11.3 | Meteor 1.3.2.4 Tried: -Unit test was running with phantomjs, but not in the mocha test reporter. |
@rbabayoff I don't know if I'd be so quick to say it's a reactive-publish bug. My application works fine with @mitar - Do you have any insights as to what might be causing this? |
No idea. I am not using mocha. But if mocha publish endpoints do not use Is there a reproduction repo? |
@mitar @jsep @rbabayoff Here's a reproduction repo: https://github.com/pcorey/practicalmocha-repro I've found that a fix is to move Not sure what's going on beyond that. |
Not sure how mocha instruments things? Does it modify publish endpoints in a general way? |
Thanks you so much @pcorey I was able to reproduce the problem, and as you said if a move Here is what I found @mitar:
In order to report data to client we use a collection, but we don't use I hope this can help you. |
What about this TODO? |
Can you try to check before |
Hello @pcorey @mitar @sprintup @fignuts @tmeasday I just release candidate of the package that should solve this issue. To test the package just add it with the version
You can use the repo that @pcorey created:
Thanks! |
@jsep I still seem to be having issues with |
Which exactly error do you get? |
Also potentially of interest:
|
@pcorey for some reason it's not running the latest version 😕 , try to do a To be sure that you are running the correct version you can do this:
|
You have to do:
(Notice |
This is great. I ran it and it solved the error that was displayed to the console. However, my project is not displaying the test reporter and I'm at a loss for what to do next. Any help would be appreciated: Thank you |
Thank you @rbabayoff I figured it out while trying to recreate the issue. It was the order of the packages in the packages file. |
The order of packages should not matter anymore? Are you using the release candidate? |
Yes, it is known that reordering of packages can help. But the important part is that we should fix is so that it works even without. |
Run the following test
And the output will be:
The text was updated successfully, but these errors were encountered: