practicalmeteor / meteor-mocha

Depreciated - Write meteor package tests with mocha and run them in the browser or from the command line with spacejam.
https://atmospherejs.com/practicalmeteor/mocha
Other
41 stars 13 forks source link

SpaceJam and 2.4.5_6 Hangs, or returns no output. #82

Open Pushplaybang opened 7 years ago

Pushplaybang commented 7 years ago

Having some weird issues with little visibility into whats causing them.

Summary

I've tried to explain my specific issues and the circumstances of them below, please let me know what other information I can provide.

Here are the top level packages I'm using for testing:

practicalmeteor:mocha@2.4.5_5
practicalmeteor:mocha-console-runner@0.2.3
practicalmeteor:chai@2.1.0_1
practicalmeteor:sinon@1.14.1_2
lmieulet:meteor-coverage           
xolvio:cleaner                     
xolvio:backdoor                    
dburles:factory                    
hwillson:stub-collections          
tmeasday:acceptance-test-driver

I have the latest spacejam, phantom-prebuilt and chimp installed globally

my test commands for CI look like this:

# unit
"test:ci": "cd app/ && spacejam test --settings settings/settings-test.json --driver-package practicalmeteor:mocha-console-runner",

# integration
"test:ci-app": "cd app/ && spacejam test --full-app --once --settings settings/settings-test.json --driver-package practicalmeteor:mocha-console-runner",

# acceptance tests with chimp and mocha are not affected

2.4.5_6 with spacejam

2.4.5_5 Causes tests with spacejam and the console-reporter to hang with no clear error message.

No output with new console reporter

I assumed I would be able to practlemeteor:mocha with the console reporter added in 2.4.5_5 which seems to run the tests, but provide no test output, only the spacejam startup and shut down.

Problems with 2.4.5_5

the only real problem with 2.4.5_5 is the regular STDERR console output inbetween the tests, that just shouldn't be there but doesn't actually effect the running of the tests, other than the console readability.

Thank you for all of the great work on these packages so far, testing is vital to Meteor maturing as a framework, and I'd love to see all of this become more standardized and simpler to start off with.