serut / meteor-coverage

Server and client coverage for Meteor
MIT License
54 stars 14 forks source link

App won't open even though it says it's running (only with COVERAGE=1) #15

Closed noahsw closed 8 years ago

noahsw commented 8 years ago

This is after making tweaks to Conf.js to get the exports to work properly (See issue #11).

When app is run with COVERAGE=1, all the logging seems to suggest the app is being instrumented properly. However, I can't open the app on http://localhost:3000 even though it says App running at http://localhost:3000. The browser simply never gets a response.

If I run with COVERAGE=0, my app loads fine.

Expected Behavior

I expect the app to load and the coverage to run when browsing to localhost.

Current Behavior

╰─± COVERAGE=1 COVERAGE_VERBOSE=1 COVERAGE_APP_FOLDER=${PWD/#$HOME/~}/ meteor
[[[[[ ~/Projects/league-wins-pool/app ]]]]]

=> Started proxy.
=> Meteor 1.4.1.1 is available. Update this project with 'meteor update'.
=> Started MongoDB.
I20160905-22:28:12.656(-7)? log.js true
I20160905-22:28:12.776(-7)? Coverage active
I20160905-22:28:12.776(-7)? Loading default configuration
I20160905-22:28:12.777(-7)? Coverage configuration:
I20160905-22:28:12.777(-7)? - IS_COVERAGE_ACTIVE= true
I20160905-22:28:12.777(-7)? - COVERAGE_APP_FOLDER= /Users/noah/Projects/league-wins-pool/app/
I20160905-22:28:12.777(-7)? .coverage.json values:
I20160905-22:28:12.793(-7)? - exclude= { general: [ '/**/*test.js', '/**/lib/test/**/*', '/**/tests/**/*' ],
I20160905-22:28:12.793(-7)?   server:
I20160905-22:28:12.794(-7)?    [ '/**/lib/test/**/*',
I20160905-22:28:12.794(-7)?      '/**/server/test/**/*',
I20160905-22:28:12.794(-7)?      '**/tests/**/*',
I20160905-22:28:12.795(-7)?      '/packages/global-imports.js' ],
I20160905-22:28:12.795(-7)?   client:
I20160905-22:28:12.795(-7)?    [ '/**/client/test/**/*.js',
I20160905-22:28:12.795(-7)?      '/**/client/tests/**/*.js',
I20160905-22:28:12.796(-7)?      '/**/client/test/**/*.js',
I20160905-22:28:12.796(-7)?      '/**/client/stylesheets/**/*',
I20160905-22:28:12.796(-7)?      '**/underscore.js',
I20160905-22:28:12.796(-7)?      '**/meteor.js',
I20160905-22:28:12.797(-7)?      '**/meteor-base.js',
I20160905-22:28:12.797(-7)?      '**/mobile-experience.js',
I20160905-22:28:12.797(-7)?      '**/babel-compiler.js',
I20160905-22:28:12.798(-7)?      '**/ecmascript.js',
I20160905-22:28:12.798(-7)?      '**/base64.js',
I20160905-22:28:12.798(-7)?      '**/ejson.js',
I20160905-22:28:12.798(-7)?      '**/id-map.js',
I20160905-22:28:12.799(-7)?      '**/ordered-dict.js',
I20160905-22:28:12.799(-7)?      '**/tracker.js',
I20160905-22:28:12.799(-7)?      '**/modules-runtime.js',
I20160905-22:28:12.799(-7)?      '**/modules.js',
I20160905-22:28:12.800(-7)?      '**/es5-shim.js',
I20160905-22:28:12.801(-7)?      '**/promise.js',
I20160905-22:28:12.801(-7)?      '**/ecmascript-runtime.js',
I20160905-22:28:12.801(-7)?      '**/babel-runtime.js',
I20160905-22:28:12.802(-7)?      '**/random.js',
I20160905-22:28:12.802(-7)?      '**/mongo-id.js',
I20160905-22:28:12.802(-7)?      '**/diff-sequence.js',
I20160905-22:28:12.802(-7)?      '**/geojson-utils.js',
I20160905-22:28:12.803(-7)?      '**/minimongo.js',
I20160905-22:28:12.803(-7)?      '**/check.js',
I20160905-22:28:12.803(-7)?      '**/retry.js',
I20160905-22:28:12.803(-7)?      '**/ddp-common.js',
I20160905-22:28:12.803(-7)?      '**/reload.js',
I20160905-22:28:12.804(-7)?      '**/ddp-client.js',
I20160905-22:28:12.804(-7)?      '**/ddp.js',
I20160905-22:28:12.804(-7)?      '**/ddp-server.js',
I20160905-22:28:12.804(-7)?      '**/allow-deny.js',
I20160905-22:28:12.804(-7)?      '**/insecure.js',
I20160905-22:28:12.805(-7)?      '**/mongo.js',
I20160905-22:28:12.805(-7)?      '**/blaze-html-templates.js',
I20160905-22:28:12.806(-7)?      '**/reactive-var.js',
I20160905-22:28:12.806(-7)?      '**/jquery.js',
I20160905-22:28:12.806(-7)?      '**/standard-minifier-css.js',
I20160905-22:28:12.806(-7)?      '**/standard-minifier-js.js',
I20160905-22:28:12.806(-7)?      '**/autopublish.js',
I20160905-22:28:12.807(-7)?      '**/dburles_eslint.js',
I20160905-22:28:12.807(-7)?      '**/webapp.js',
I20160905-22:28:12.807(-7)?      '**/livedata.js',
I20160905-22:28:12.816(-7)?      '**/hot-code-push.js',
I20160905-22:28:12.816(-7)?      '**/deps.js',
I20160905-22:28:12.816(-7)?      '**/htmljs.js',
I20160905-22:28:12.817(-7)?      '**/observe-sequence.js',
I20160905-22:28:12.817(-7)?      '**/blaze.js',
I20160905-22:28:12.817(-7)?      '**/spacebars.js',
I20160905-22:28:12.818(-7)?      '**/templating.js',
I20160905-22:28:12.818(-7)?      '**/launch-screen.js',
I20160905-22:28:12.819(-7)?      '**/ui.js',
I20160905-22:28:12.819(-7)?      '**/autoupdate.js',
I20160905-22:28:12.819(-7)?      '**/global-imports.js',
I20160905-22:28:12.819(-7)?      '**/practicalmeteor_mocha.js',
I20160905-22:28:12.819(-7)?      '**/practicalmeteor_loglevel.js',
I20160905-22:28:12.820(-7)?      '**/practicalmeteor_sinon.js',
I20160905-22:28:12.820(-7)?      '**/practicalmeteor_mocha-console-runner.js',
I20160905-22:28:12.820(-7)?      '**/practicalmeteor_mocha-core.js',
I20160905-22:28:12.820(-7)?      '**/kadira_flow-router.js',
I20160905-22:28:12.820(-7)?      '**/tmeasday_test-reporter-helpers.js',
I20160905-22:28:12.821(-7)?      '**/practicalmeteor_chai.js' ] }
I20160905-22:28:12.821(-7)? - include= [ '**/lib/**/methods.js' ]
I20160905-22:28:12.821(-7)? - COVERAGE_EXPORT_FOLDER= ./.coverage
I20160905-22:28:12.821(-7)? index.js true
I20160905-22:28:13.193(-7)? [Accepted][*]:  /packages/practicalmeteor_chai.js
I20160905-22:28:13.193(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/practicalmeteor_chai.js
I20160905-22:28:13.194(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/practicalmeteor_chai.js
I20160905-22:28:13.194(-7)? [ServerSide][Package] file instrumented: /packages/practicalmeteor_chai.js
W20160905-22:28:13.195(-7)? (STDERR) Source map not found /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/practicalmeteor_chai.js.map
W20160905-22:28:13.195(-7)? (STDERR) Module load hook: transform [packages/practicalmeteor_chai.js]
I20160905-22:28:15.476(-7)? [Accepted][*]:  /packages/practicalmeteor_sinon.js
I20160905-22:28:15.476(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/practicalmeteor_sinon.js
I20160905-22:28:15.476(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/practicalmeteor_sinon.js
I20160905-22:28:15.477(-7)? [ServerSide][Package] file instrumented: /packages/practicalmeteor_sinon.js
W20160905-22:28:15.477(-7)? (STDERR) Source map not found /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/practicalmeteor_sinon.js.map
W20160905-22:28:15.478(-7)? (STDERR) Module load hook: transform [packages/practicalmeteor_sinon.js]
I20160905-22:28:19.989(-7)? [Accepted][*]:  /packages/hwillson_stub-collections.js
I20160905-22:28:19.990(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hwillson_stub-collections.js
I20160905-22:28:19.991(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hwillson_stub-collections.js.map
I20160905-22:28:19.991(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hwillson_stub-collections.js
I20160905-22:28:19.991(-7)? [ServerSide][Package] file instrumented: /packages/hwillson_stub-collections.js
W20160905-22:28:19.992(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hwillson_stub-collections.js]
I20160905-22:28:20.060(-7)? [Accepted][*]:  /packages/tmeasday_acceptance-test-driver.js
I20160905-22:28:20.060(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/tmeasday_acceptance-test-driver.js
I20160905-22:28:20.060(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/tmeasday_acceptance-test-driver.js.map
I20160905-22:28:20.060(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/tmeasday_acceptance-test-driver.js
I20160905-22:28:20.060(-7)? [ServerSide][Package] file instrumented: /packages/tmeasday_acceptance-test-driver.js
W20160905-22:28:20.061(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/tmeasday_acceptance-test-driver.js]
I20160905-22:28:20.096(-7)? [Accepted][*]:  /packages/yogiben_autoform-modals.js
I20160905-22:28:20.096(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/yogiben_autoform-modals.js
I20160905-22:28:20.096(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/yogiben_autoform-modals.js
I20160905-22:28:20.096(-7)? [ServerSide][Package] file instrumented: /packages/yogiben_autoform-modals.js
W20160905-22:28:20.097(-7)? (STDERR) Source map not found /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/yogiben_autoform-modals.js.map
W20160905-22:28:20.097(-7)? (STDERR) Module load hook: transform [packages/yogiben_autoform-modals.js]
I20160905-22:28:20.112(-7)? [Accepted][*]:  /packages/okgrow_analytics.js
I20160905-22:28:20.112(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/okgrow_analytics.js
I20160905-22:28:20.112(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/okgrow_analytics.js.map
I20160905-22:28:20.113(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/okgrow_analytics.js
I20160905-22:28:20.113(-7)? [ServerSide][Package] file instrumented: /packages/okgrow_analytics.js
W20160905-22:28:20.114(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/okgrow_analytics.js]
I20160905-22:28:20.160(-7)? [Accepted][*]:  /packages/reywood_publish-composite.js
I20160905-22:28:20.160(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/reywood_publish-composite.js
I20160905-22:28:20.162(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/reywood_publish-composite.js.map
I20160905-22:28:20.162(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/reywood_publish-composite.js
I20160905-22:28:20.162(-7)? [ServerSide][Package] file instrumented: /packages/reywood_publish-composite.js
W20160905-22:28:20.163(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/reywood_publish-composite.js]
I20160905-22:28:20.460(-7)? [Accepted][*]:  /packages/hot-code-push.js
I20160905-22:28:20.460(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hot-code-push.js
I20160905-22:28:20.461(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hot-code-push.js
I20160905-22:28:20.461(-7)? [ServerSide][Package] file instrumented: /packages/hot-code-push.js
W20160905-22:28:20.462(-7)? (STDERR) Source map not found /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/hot-code-push.js.map
W20160905-22:28:20.463(-7)? (STDERR) Module load hook: transform [packages/hot-code-push.js]
I20160905-22:28:20.475(-7)? [Accepted][*]:  /packages/launch-screen.js
I20160905-22:28:20.475(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/launch-screen.js
I20160905-22:28:20.476(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/launch-screen.js
I20160905-22:28:20.477(-7)? [ServerSide][Package] file instrumented: /packages/launch-screen.js
W20160905-22:28:20.478(-7)? (STDERR) Source map not found /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/launch-screen.js.map
W20160905-22:28:20.478(-7)? (STDERR) Module load hook: transform [packages/launch-screen.js]
I20160905-22:28:20.497(-7)? [Accepted][*]:  /packages/autoupdate.js
I20160905-22:28:20.498(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/autoupdate.js
I20160905-22:28:20.498(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/autoupdate.js.map
I20160905-22:28:20.498(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/autoupdate.js
I20160905-22:28:20.499(-7)? [ServerSide][Package] file instrumented: /packages/autoupdate.js
W20160905-22:28:20.500(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/autoupdate.js]
I20160905-22:28:20.602(-7)? [Ignored][exclude.server]:  /packages/global-imports.js
I20160905-22:28:20.603(-7)? [ServerSide][Package] file ignored: /packages/global-imports.js
I20160905-22:28:20.603(-7)? [Accepted][*]:  /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/app/app.js
I20160905-22:28:20.603(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/app/app.js
I20160905-22:28:20.608(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/app/app.js.map
I20160905-22:28:20.608(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/app/app.js
I20160905-22:28:20.608(-7)? [ServerSide][App.js] file instrumented: /app/app.js
W20160905-22:28:20.609(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/app/app.js]
I20160905-22:28:23.703(-7)? info: Initialized logger
I20160905-22:28:23.959(-7)? info: Meteor.isTest: false
I20160905-22:28:23.960(-7)? info: Meteor.isAppTest: false
I20160905-22:28:23.960(-7)? info: Meteor.isDevelopment: true
I20160905-22:28:23.960(-7)? info: Meteor.isProduction: false
I20160905-22:28:24.006(-7)? info: Initializing SyncedCron
I20160905-22:28:24.012(-7)? [Accepted][*]:  /packages/mdg_validation-error.js
I20160905-22:28:24.013(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/mdg_validation-error.js
I20160905-22:28:24.013(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/mdg_validation-error.js.map
I20160905-22:28:24.013(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/mdg_validation-error.js
I20160905-22:28:24.013(-7)? [ServerSide][Package] file instrumented: /packages/mdg_validation-error.js
W20160905-22:28:24.014(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/mdg_validation-error.js]
I20160905-22:28:24.069(-7)? [Accepted][*]:  /packages/service-configuration.js
I20160905-22:28:24.070(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/service-configuration.js
I20160905-22:28:24.070(-7)? Add source map for file /Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/service-configuration.js.map
I20160905-22:28:24.072(-7)? registerSourceMap/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/service-configuration.js
I20160905-22:28:24.072(-7)? [ServerSide][Package] file instrumented: /packages/service-configuration.js
W20160905-22:28:24.079(-7)? (STDERR) Module load hook: transform [/Users/noah/Projects/league-wins-pool/app/.meteor/local/build/programs/server/packages/service-configuration.js]
I20160905-22:28:24.142(-7)? Kadira: completed instrumenting the app
I20160905-22:28:24.145(-7)? Cannot connect to Rollbar API as the following environment variables are not available: [ ROLLBAR_SERVER_ACCESS_TOKEN ]
I20160905-22:28:24.151(-7)? info: Initializing leagues and teams
I20160905-22:28:24.324(-7) (migrations_server.js:82) Migrations: Not migrating, control is locked.
I20160905-22:28:24.328(-7)? info: SyncedCron: Scheduled "Refresh NFL standings" next run @Mon Sep 05 2016 22:30:00 GMT-0700 (PDT)
I20160905-22:28:24.329(-7)? info: SyncedCron: Scheduled "Refresh NBA standings" next run @Tue Sep 06 2016 05:00:00 GMT-0700 (PDT)
I20160905-22:28:24.329(-7)? info: SyncedCron: Scheduled "Refresh MLB standings" next run @Mon Sep 05 2016 22:30:00 GMT-0700 (PDT)
I20160905-22:28:24.334(-7)? info: SyncedCron: Scheduled "Send weekly leaderboard emails" next run @Mon Sep 05 2016 23:00:00 GMT-0700 (PDT)
I20160905-22:28:24.334(-7)? info: SyncedCron: Scheduled "Send weekly top upcoming games emails" next run @Wed Sep 07 2016 10:00:00 GMT-0700 (PDT)
I20160905-22:28:24.354(-7)? info: Add route: [previewWeeklyLeaderboardTemplate] at path /emails/preview/weekly-leaderboard-email/pools/:poolId/seasons/:seasonId
I20160905-22:28:24.354(-7)? info: Add route: [textWeeklyLeaderboardTemplate] at path /emails/text/weekly-leaderboard-email/pools/:poolId/seasons/:seasonId
I20160905-22:28:24.354(-7)? info: Add route: [sendWeeklyLeaderboardTemplate] at path /emails/send/weekly-leaderboard-email/pools/:poolId/seasons/:seasonId
I20160905-22:28:24.362(-7)? info: Add route: [previewWeeklyTopUpcomingGamesTemplate] at path /emails/preview/weekly-top-upcoming-games-email/pools/:poolId
I20160905-22:28:24.363(-7)? info: Add route: [textWeeklyTopUpcomingGamesTemplate] at path /emails/text/weekly-top-upcoming-games-email/pools/:poolId
I20160905-22:28:24.363(-7)? info: Add route: [sendWeeklyTopUpcomingGamesTemplate] at path /emails/send/weekly-top-upcoming-games-email/pools/:poolId
=> Started your app.

=> App running at: http://localhost:3000/

Steps to Reproduce (for bugs)

COVERAGE=0 COVERAGE_VERBOSE=1 COVERAGE_APP_FOLDER=${PWD/#$HOME/~}/ meteor

Context

Your Environment

serut commented 8 years ago

Thanks @noahsw ! I will look at it, but it looks like es6 is not fully supported, right ?

noahsw commented 8 years ago

You referring to #11 ? That certainly is strange. I didn't realize only certain types of exports would be supported. Not even sure where to start with that one. Is it a Meteor issue? An ecmascript package issue? I'd expect a compile-time error at the very least.

serut commented 8 years ago

Fixed by meteor-coverage v1.1.3. Since the v~0.9, we have some ES6 code and node code that uses node >v0.11. Meteor apps on version 1.3 uses node 0.10, so it can just fail.