{"action":"created","issue":{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/266","labels_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/266/comments","events_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/266/events","html_url":"https://github.com/Sanjo/meteor-jasmine/issues/266","id":100975350,"number":266,"title":"jasmine-client-integration tests only run when app physically launched in browser","user":{"login":"philipobrien","id":1763813,"avatar_url":"https://avatars.githubusercontent.com/u/1763813?v=3","gravatar_id":"","url":"https://api.github.com/users/philipobrien","html_url":"https://github.com/philipobrien","followers_url":"https://api.github.com/users/philipobrien/followers","following_url":"https://api.github.com/users/philipobrien/following{/other_user}","gists_url":"https://api.github.com/users/philipobrien/gists{/gist_id}","starred_url":"https://api.github.com/users/philipobrien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipobrien/subscriptions","organizations_url":"https://api.github.com/users/philipobrien/orgs","repos_url":"https://api.github.com/users/philipobrien/repos","events_url":"https://api.github.com/users/philipobrien/events{/privacy}","received_events_url":"https://api.github.com/users/philipobrien/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/labels/client-integration-mode","name":"client-integration-mode","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-08-14T09:39:05Z","updated_at":"2015-08-28T08:44:09Z","closed_at":null,"body":"If I have no browser window open and run `meteor --test` my `jasmine-server-unit` tests run but then terminal output stalls when I expect the `jasmine-client-integration` tests to run. The logs show nothing, the most recent log being `[velocity] Established connection with Velocity.`\r\n\r\nIf I then open the running app in my browser the client-integration tests complete successfully. How do I get around this? \r\n\r\n\r\nUPDATE\r\n\r\nI just realised the docs received a facelift and [read here](https://velocity.readme.io/v1.0/docs/jasmine-testing-modes#client) that I was approaching it wrong so now I have tried\r\n\r\n```console\r\nnpm install -g phantomjs\r\nJASMINE_BROWSER=PhantomJS meteor --test\r\n```\r\n\r\nbut it's still not running the client-integration tests\r\n\r\nI'm using Meteor 1.1.0.3 and the package versions I am using are\r\n\r\n```console\r\n$ meteor list\r\naccounts-password                  1.1.1  Password support for accounts\r\nalanning:roles                     1.2.13  Role-based authorization\r\ndburles:google-maps                1.1.3  Google Maps Javascript API v3\r\nfortawesome:fontawesome            4.4.0  Font Awesome (official): 500+ scalable vector icons, customizable via CSS, Retina friendly\r\nimsky:holder                       2.8.1  Holder uses SVG to render image placeholders entirely in browser.\r\ninsecure                           1.0.3  Allow all database writes by default\r\niron:router                        1.0.9  Routing specifically designed for Meteor\r\njquery                             1.11.3_2  Manipulate the DOM using CSS selectors\r\nmanuelschoebel:wait-on-lib         0.3.0  Use Meteor Iron-Routers waitOn to load external javascript\r\nmaterialize:materialize            0.97.0  Materialize (official): A modern responsive front-end framework based on Material Design\r\nmatteodem:easy-search              1.6.2  Easy-to-use search with Blaze Components (+ Elastic Search support)\r\nmeteor-platform                    1.2.2  Include a standard set of Meteor packages in your app\r\nmeteorhacks:kadira                 2.23.0  Performance Monitoring for Meteor\r\nmsavin:mongol                      1.1.5  The insanely handy development package for Meteor.\r\nnicolaslopezj:tabular-materialize  1.2.1  Datatables for large or small datasets in Meteor\r\npeernohell:c3                      1.1.3  C3 (0.4.10) charting library based on D3.\r\nreactive-var                       1.0.5  Reactive variable\r\nsacha:spin                         2.3.1  Simple spinner package for Meteor\r\nsanjo:jasmine                      0.17.0  Velocity integration of the Jasmine testing framework\r\nstevezhu:lodash                    3.10.1  A utility library delivering consistency, customization, performance, & extras.\r\nuseraccounts:iron-routing          1.12.1  UserAccounts package providing routes configuration capability via iron:router.\r\nuseraccounts:materialize           1.12.1  Accounts Templates styled for Materialize Css.\r\nvelocity:html-reporter             0.8.2  Reactive Velocity test reports in your app.\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/comments/135684032","html_url":"https://github.com/Sanjo/meteor-jasmine/issues/266#issuecomment-135684032","issue_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/266","id":135684032,"user":{"login":"philipobrien","id":1763813,"avatar_url":"https://avatars.githubusercontent.com/u/1763813?v=3","gravatar_id":"","url":"https://api.github.com/users/philipobrien","html_url":"https://github.com/philipobrien","followers_url":"https://api.github.com/users/philipobrien/followers","following_url":"https://api.github.com/users/philipobrien/following{/other_user}","gists_url":"https://api.github.com/users/philipobrien/gists{/gist_id}","starred_url":"https://api.github.com/users/philipobrien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipobrien/subscriptions","organizations_url":"https://api.github.com/users/philipobrien/orgs","repos_url":"https://api.github.com/users/philipobrien/repos","events_url":"https://api.github.com/users/philipobrien/events{/privacy}","received_events_url":"https://api.github.com/users/philipobrien/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T08:44:08Z","updated_at":"2015-08-28T08:44:08Z","body":"OK, I changed it to this\r\n\r\n```\r\nmeteor-platform\r\njquery\r\naccounts-password\r\niron:router\r\npeernohell:c3\r\nsanjo:jasmine\r\nsacha:spin\r\nreactive-var\r\nes5-shim\r\nxolvio:cucumber\r\nvelocity:html-reporter\r\nuseraccounts:iron-routing\r\ndburles:google-maps\r\nimsky:holder\r\nalanning:roles\r\nfortawesome:fontawesome\r\nmanuelschoebel:wait-on-lib\r\nmaterialize:materialize\r\nnicolaslopezj:tabular-materialize\r\nuseraccounts:materialize\r\nmeteorhacks:kadira\r\nmatteodem:easy-search\r\nstevezhu:lodash\r\nmsavin:mongol\r\n```\r\n\r\nUnfortunately it hasn't fixed things. In fact, on my local machine I am now getting similar Velocity errors\r\n\r\n```\r\n[PhantomJS] TypeError: instanceof called on an object with an invalid prototype property.\r\n...\r\n[PhantomJS]   http://localhost:59364/packages/global-imports.js?463bf9088a082f70cace700ebe7ff66c60248da1:8\r\n[PhantomJS] ReferenceError: Can't find variable: Template\r\n...\r\n...\r\n```\r\n\r\nyet despite these errors all Cucumber tests run and it ends with `TESTS RAN SUCCESSFULLY`"}}