Giter VIP home page Giter VIP logo

meteor-rtd-example-project's Introduction

Meteor Leaderboard Example using RTD

This is a project exemplifying xolv.io's RTD Test Runner for Meteor, an end-to-end testing solution combining Karma, Selenium Webdriver and Istanbul. Click here for the RTD project page.

RTD DEMO

Instructions

Ensure you have node and Meteor.

Now clone this project's git repo and run:

  git clone https://github.com/xolvio/meteor-rtd-example-project
  cd meteor-rtd-example-project
  npm install
  ./node_modules/.bin/rtd --debug

Every time you start development, just run this:

  ./node_modules/.bin/rtd

Or to run on a CI server:

  ./node_modules/.bin/rtd runOnce

Have a play around, and enjoy seeing realtime feedback from unit and acceptance tests, as well as test coverage every time you save a file. If you'd like to use RTD in your Meteor project, head over to the RTD project page.

meteor-rtd-example-project's People

Contributors

alanning avatar gdennie avatar kevinharvey avatar samhatoum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-rtd-example-project's Issues

Question: Are RTD Unit tests capable of evaluating collection modifications?

Take the below for example:

/tests/model/url.js:

        it("can add to and read from Meteor collections", function () {
            expect(Meteor.instantiationCounts.url).toBe(1);

            Url.insert({test : 'abc'});
            console.log(Url.find({}).fetch());
        });

    });

/app/models/url:

Url = new Meteor.Collection("url");

I'm sure I'm missing something obvious here but that console.log is outputting undefined.

Is there any way that RTD can be used to test Collection CRUD functionality?

Note When I console.log Url I get an empty object. I'm guessing something within Core Meteor may not be available from within an RTD unit testing context?

Running acceptance tests fails

I am trying to run the example project from:
[email protected]:xolvio/real-time-development-with-meteor.git

However, I cannot get the Acceptance tests to run.
I suspect the problem is that the selenium-webdriver cannot create a session.
I fails when I try using http://localhost:4444/wd/hub/static/resource/hub.html

Here is some environment info and output of the testrun.

[stou$ real-time-development-with-meteor]$ phantomjs --version
1.9.1
[stou$ real-time-development-with-meteor]$ grunt --version
grunt-cli v0.1.9
[stou$ real-time-development-with-meteor]$ cd test/rtd
[stou$ rtd]$ grunt --debug
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/Gruntfile.js
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/Gruntfile.js
Launching Selenium-server on port 4444
Launching Karma listener on port 9876
Launching Karma runner on port 9100
Launching Meteor on port 3000
Launching Mirror on port 8000
[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-contrib-watch/tasks/watch.js
Waiting...[D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

  • - - Running unit tests - - -
    ...........
    PhantomJS 1.9 (Mac): Executed 11 of 11 SUCCESS (0.243 secs / 0.006 secs)
    [D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
    [D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
    [D] Task source: /Users/stou/Documents/programming/meteor/experiments/rtd/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
  • - - Running acceptance tests - - -
    F

Failures:

  1. Leaderboard functionality increases a players score by 5 when the increment button is clicked
    Message:
    timeout: timed out after 10000 msec waiting for App didn't reset
    Stacktrace:
    undefined

Finished in 12.313 seconds
1 test, 1 assertion, 1 failure, 0 skipped

Error: Command failed:
Fatal error: Command failed:

Completed in 26.485s at Tue Jul 02 2013 23:12:53 GMT+0200 (CEST) - Waiting...

Problems with _ - underscore - identifier

Hello,

I'm not experienced with unit tests and testing in general and the amount of libs available has my head spinning a bit...

So i was glad to find your example project which seemed to work amazingly well.

But when I tried to add my project to the structure, the following issue occurred:

I am using _ (underscore.js) in my own code. The first time the phantomjs - Browser encounters a call to _ from my own code it throws an error:

ReferenceError: Can't find variable: _ .

I'm surprised because neither the mrt command which I use to run meteor (I changed the grunt file) nor the browser in which i open my app seems to have a problem with not finding the identifier "_".

So this might actually be a phantomjs issue more than one connected with your project, and it might have something to do with the recent meteor update (0.6.0)... I think I'll try to get a minimal example running tomorrow if this issue is of interest.

Exits with Bus error: 10

I have not yet been able to get this demo project to run yet. When I run:
$ ./rtd --debug

Selenium, Karma, and Meteor all start up fine ... then I see this:

Running "watch" task
[D] Task source: /Users/Derek/DGTLife/WebLab/meteor/meteor-rtd-example-project/test/rtd/node_modules/grunt-contrib-watch/tasks/watch.js
Waiting..../rtd: line 11: 22364 Bus error: 10           grunt --debug

and the process exits; then I'm back at the prompt.

I searched for the "Bus error: 10" in this issue queue, but no one seems to have experienced this. I'm running on a MBP with OS X Mavericks with:

node v0.10.20
meteor 0.6.6.2 which I switch down to 0.6.5.1 for rtd
phantomjs 1.9.2-2
karma 0.10.4
grunt-cli v0.1.9
grunt v0.4.1
jasmine-node 1.11.0
istanbul 0.1.44

Any thoughts on which component is complaining about the bus error?

meteor-router conflict

I'm using the Meteor Router atmosphere package to provide url routing. I think this is intercepting the /coverage url. Do you have any ideas about how to workaround this?

Doesn't work out of the box

I've just cloned the repo and bootstrapped as described in the documentation:

09:41:24 {master} ~/proj/research/meteor-rtd-example-project$ ./node_modules/.bin/rtd --debug
Running "bgShell:killAll" (bgShell) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "downloadAndOrStartSelenium" task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/Gruntfile.js

Downloading http://chromedriver.storage.googleapis.com/2.9/chromedriver_mac32.zip
..............................

Downloading http://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar
................................................................................
................................................................................
...........................................................................

Running "unzip:chromeDriver" (unzip) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-zip/tasks/zip.js
File "/Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/lib/bin/" created.

Running "chmod" task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/Gruntfile.js

Running "bgShell:startKarma" (bgShell) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:synchronizeMirrorApp" (bgShell) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:instrumentCode" (bgShell) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
.
Processed [3] files in 0 secs

Running "bgShell:startMirrorApp" (bgShell) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:startApp" (bgShell) task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "pollServices" task
[D] Task source: /Users/rajish/proj/research/meteor-rtd-example-project/node_modules/rtd/Gruntfile.js
RTD is starting up...
Installing Meteor 0.8.1.1:
Installing Meteor 0.8.1.1:
 * 'meteor' build tool (version 43b8566b9f)
 * 'meteor' build tool (version 43b8566b9f)
 * Package updates: accounts-base accounts-facebook accounts-github
   accounts-google accounts-meetup accounts-meteor-developer accounts-oauth
   accounts-password accounts-twitter accounts-ui accounts-ui-unstyled
   accounts-weibo amplify appcache application-configuration
   audit-argument-checks autopublish autoupdate backbone binary-heap bootstrap
   browser-policy browser-policy-common browser-policy-content
   browser-policy-framing callback-hook check code-prettify coffeescript
   coffeescript-test-helper ctl ctl-helper d3 deps dev-bundle-fetcher
   disable-oplog ejson email facebook facts follower-livedata force-ssl
   geojson-utils github google handlebars html-tools htmljs http id-map insecure
   jquery jquery-history jquery-layout jquery-waypoints js-analyze
   js-analyze-tests json jsparse less livedata localstorage logging meetup
   meteor meteor-developer meyerweb-reset minifiers minimongo mongo-livedata
   oauth oauth-encryption oauth1 oauth2 observe-sequence ordered-dict
   preserve-inputs random reactive-dict reload retry routepolicy
   service-configuration session showdown spacebars spacebars-compiler
   spacebars-tests spiderable srp standard-app-packages star-translate startup
   stylus templating test-helpers test-in-browser test-in-console tinytest
   twitter ui underscore underscore-tests webapp weibo

 * Package updates: accounts-base accounts-facebook accounts-github
   accounts-google accounts-meetup accounts-meteor-developer accounts-oauth
   accounts-password accounts-twitter accounts-ui accounts-ui-unstyled
   accounts-weibo amplify appcache application-configuration
   audit-argument-checks autopublish autoupdate backbone binary-heap bootstrap
   browser-policy browser-policy-common browser-policy-content
   browser-policy-framing callback-hook check code-prettify coffeescript
   coffeescript-test-helper ctl ctl-helper d3 deps dev-bundle-fetcher
   disable-oplog ejson email facebook facts follower-livedata force-ssl
   geojson-utils github google handlebars html-tools htmljs http id-map insecure
   jquery jquery-history jquery-layout jquery-waypoints js-analyze
   js-analyze-tests json jsparse less livedata localstorage logging meetup
   meteor meteor-developer meyerweb-reset minifiers minimongo mongo-livedata
   oauth oauth-encryption oauth1 oauth2 observe-sequence ordered-dict
   preserve-inputs random reactive-dict reload retry routepolicy
   service-configuration session showdown spacebars spacebars-compiler
   spacebars-tests spiderable srp standard-app-packages star-translate startup
   stylus templating test-helpers test-in-browser test-in-console tinytest
   twitter ui underscore underscore-tests webapp weibo

>> Failed to load tools for release 0.8.1.1
>>
>> /Users/rajish/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
>> throw(ex);
>> ^
>> Error: ENOTEMPTY, directory not empty '/Users/rajish/.meteor/tools/43b8566b9f'
>>     at Object.fs.renameSync (fs.js:548:18)
>>     at Object.files.extractTarGz (/Users/rajish/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/files.js:545:6)
>>     at Object._.extend.downloadToolsToWarehouse (/Users/rajish/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/warehouse.js:366:11)
>>     at Object._.extend._populateWarehouseForRelease (/Users/rajish/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/warehouse.js:256:21)
>>     at Object._.extend.ensureReleaseExistsAndReturnManifest (/Users/rajish/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/warehouse.js:107:22)
>>     at /Users/rajish/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:849:36
Fatal error: Command failed: cd /Users/rajish/proj/research/meteor-rtd-example-project/app;meteor run --port 3000;

Looks like it's trying to install meteor 0.8.1.1 while the most recent one is 0.9.3

Better documentation

I'm trying to figure out how to get this project to work but it's just not happening for me. I can't figure out how to test any of my coffeescript files or how to make tests written in coffeescript work. I don't see any tests being run in the console. My test reports don't show any of my code outside of client/, models/, and server/. It seems like everything is set up right but I just can't figure out how to use it.

Code coverage broken: webdriver.By.className('metric') is undefined

Just checked this out to try and get a basic idea of how RTD works.

Test suite is completing successfully, but can't get coverage working.

$ grunt --debug
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/Gruntfile.js
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/Gruntfile.js
Launching Selenium-server on port 4444
Launching Karma listener on port 9876
Launching Karma runner on port 9100
Launching Meteor on port 3000
Launching Mirror on port 8000
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-contrib-watch/tasks/watch.js
Waiting...[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

- - - Running unit tests - - -
...........
PhantomJS 1.9 (Mac): Executed 11 of 11 SUCCESS (0.139 secs / 0.006 secs)
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
- - - Running acceptance tests - - -
.

Finished in 9.144 seconds
1 test, 4 assertions, 0 failures, 0 skipped


[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/Gruntfile.js
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
- - - Running coverage tests - - -


>> { [TypeError: Cannot call method 'getText' of undefined]
>>   stack: 'TypeError: Cannot call method 'getText' of undefined
    at /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/lib/final.spec.js:107:28
    at /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/goog/base.js:1112:15
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:1431:20)
    at notify (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:315:12)
    at notifyAll (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:284:7)
    at fulfill (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:389:7)
    at Object.webdriver.promise.asap (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:665:5)
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:1442:25)
    at notify (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:315:12)
    at notifyAll (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:284:7)
==== async task ====
WebDriver.findElements(By.className("metric"))
    at webdriver.WebDriver.schedule (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:246:15)
    at webdriver.WebDriver.findElements (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:798:17)
    at /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/lib/final.spec.js:105:20
    at /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/goog/base.js:1112:15
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:1431:20)
    at notify (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:315:12)
    at notifyAll (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:284:7)
    at fulfill (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:389:7)
    at Object.webdriver.promise.asap (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:665:5)',
  webdriver_promise_error_: true }
Error in acceptance tests


Completed in 16.185s at Tue Jul 02 2013 14:40:09 GMT-0400 (EDT) - Waiting...

...and in the browser...

TypeError: Cannot read property 'start' of undefined
    at tmp (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/lib/istanbul-middleware-port/.npm/node_modules/istanbul/lib/object-utils.js:58:44)
    at Array.forEach (native)
    at Object.addDerivedInfoForFile (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/lib/istanbul-middleware-port/.npm/node_modules/istanbul/lib/object-utils.js:57:37)
    at Object.Collector.fileCoverageFor (/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/lib/istanbul-middleware-port/.npm/node_modules/istanbul/lib/collector.js:93:15)
    at app/packages/istanbul-middleware-port/core.js:143:86
    at Array.forEach (native)
    at getTreeSummary (app/packages/istanbul-middleware-port/core.js:142:23)
    at Object.core.render (app/packages/istanbul-middleware-port/core.js:186:19)
    at app.get.origUrl (app/packages/istanbul-middleware-port/handlers.js:31:14)
    at Object.<anonymous> (app/packages/istanbul-middleware-port/express-shim.js:16:13)

Same trace with node v0.10.5, v0.10.10, v0.11.2 via nvm on Mac OS 10.8.4.

Am I missing something silly?

Suggestions on how to import underscore?

We're using underscore in our meteor code and it seems like a good thing to have as-is in the specs as well. Any suggestions for how best to organize for importing it?

Thanks for this project, by the way. It's been a huge help in setting up testing on our meteor project. Frustrating, though, that this heavy handed approach seems to be the best way to handle it yet. I've got a bunch more stubs I'll try to contribute back.

Error when following Readme.md instructions

Executing 'npm install' followed by 'grunt' produces the following error on OSX. This may be caused by an over-zealous .gitignore (excluding .meteor directory); or just need to update instructions with how to properly set up the Meteor project.

Running "bgShell:startPhantom" (bgShell) task

Running "bgShell:startAcceptanceApp" (bgShell) task

Running "bgShell:startKarma" (bgShell) task

Running "bgShell:startApp" (bgShell) task

Running "watch" task
Waiting...run: You're not in a Meteor project directory.

To create a new Meteor project:
   meteor create <project name>
For example:
   meteor create myapp

For more help, see 'meteor --help'.
>> Error: Command failed:
Fatal error: Command failed:

Coverage is not generated

So I tried to run RTD on this project according to README and seems to not working.
First, there is a problem with jasmine-node -> mhevery/jasmine-node#330
Which I've managed to fix by putting jasmine-reports: "^1.0.0 in package.json.
But even after that I can't make it work.
All test pass but looks like coverage is not generated

./node_modules/.bin/rtd runOnce --debug
....
Running "postLatestUnitCoverage" task
[D] Task source: /Users/maxim/repos/meteor_learning/meteor-rtd-example-project/node_modules/rtd/Gruntfile.js
No coverage reports available from unit tests

See full log
Any ideas?

Running acceptance tests fails on MacOS 10.8.3

I had a first try with PhantomJS, switched to Chrome after reading issue #11.
Node 0.8.14, meteor 0.6.4

When i run grunt, the acceptance tests fails , here is the log of grunt --debug :

  • - - Running unit tests - - -
    ...........
    Chrome 22.0 (Mac): Executed 11 of 11 SUCCESS (0.061 secs / 0.006 secs)
    [D] Task source: /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
    [D] Task source: /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
    [D] Task source: /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
  • - - Running acceptance tests - - -

    timers.js:103
    if (!process.listeners('uncaughtException').length) throw e;
    ^
    UnknownError: unknown error: version info not a dictionary
    (Driver info: chromedriver=0.8,platform=Mac OS X 10.8.3 x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 1.08 seconds
    Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:22:56'
    System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.3', java.version: '1.6.0_45'
    Driver info: org.openqa.selenium.chrome.ChromeDriver
    at new bot.Error (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/atoms/error.js:108:18)
    at Object.bot.response.checkResponse (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:133:20
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/goog/base.js:1112:15
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:1431:20)
    at notify (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:315:12)
    at notifyAll (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:284:7)
    at fulfill (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:389:7)
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:600:51
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/http/http.js:96:5
    ==== async task ====
    WebDriver.createSession()
    at Function.webdriver.WebDriver.acquireSession_ (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:131:49)
    at Function.webdriver.WebDriver.createSession (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:110:30)
    at Builder.build (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/builder.js:70:22)
    at module.exports (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/webdrivers/selenium-server.js:14:17)
    at reuseOrCreateSession (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/acceptance/leaderboard.spec.js:53:69)
    at Request.getWebdriverSessions as _callback
    at Request.init.self.callback (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/request/index.js:148:22)
    at Request.EventEmitter.emit (events.js:99:17)
    at Request.onResponse (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/request/index.js:876:14)
    Fatal error:
    timers.js:103
    if (!process.listeners('uncaughtException').length) throw e;
    ^
    UnknownError: unknown error: version info not a dictionary
    (Driver info: chromedriver=0.8,platform=Mac OS X 10.8.3 x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 1.08 seconds
    Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:22:56'
    System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.3', java.version: '1.6.0_45'
    Driver info: org.openqa.selenium.chrome.ChromeDriver
    at new bot.Error (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/atoms/error.js:108:18)
    at Object.bot.response.checkResponse (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:133:20
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/goog/base.js:1112:15
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:1431:20)
    at notify (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:315:12)
    at notifyAll (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:284:7)
    at fulfill (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:389:7)
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/promise.js:600:51
    at /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/http/http.js:96:5
    ==== async task ====
    WebDriver.createSession()
    at Function.webdriver.WebDriver.acquireSession_ (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:131:49)
    at Function.webdriver.WebDriver.createSession (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:110:30)
    at Builder.build (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/selenium-webdriver/builder.js:70:22)
    at module.exports (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/webdrivers/selenium-server.js:14:17)
    at reuseOrCreateSession (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/acceptance/leaderboard.spec.js:53:69)
    at Request.getWebdriverSessions as _callback
    at Request.init.self.callback (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/request/index.js:148:22)
    at Request.EventEmitter.emit (events.js:99:17)
    at Request.onResponse (/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/node_modules/request/index.js:876:14)

Jasmine timeout setting

I was frequently getting the following error once I started modifying this project to test my application:
timeout: timed out after 5000 msec waiting for spec to complete

There is a setting in test/acceptance/leaderboard.spec.js:
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;

I have found that changing it to the following eliminates my timeout errors:
jasmine.getEnv().defaultTimeoutInterval = 20000;

rtd.conf.js - killMongo flag not working

IGNORE: Sorry, meant to raise this on the rtd project.


I've got the flag set as follows:

    killMongo: false

but my standalone mongo instance is still being killed. I've tried using true but that's not working either. The conf file is in the root of the rtd directory tree, so I assume that's the file being used.

Crashes on unit tests

Hey, I installed it as prescribed, started it with grunt, modified a file and I get:

grunt --debug
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/Gruntfile.js
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-contrib-watch/tasks/watch.js
Waiting...[D] Task source: /Users/alexanderwalter/Development/meteor-test/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

- - - Running unit tests - - -
>> Error: Command failed:
Fatal error: Command failed: 
>> Error: Command failed:
Fatal error: Command failed: 

Any pointers?

System is Mac 10.8.3

├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│   ├─┬ [email protected]
│   │ └─┬ [email protected]
│   │   ├── [email protected]
│   │   └── [email protected]
│   └─┬ [email protected]
│     ├── [email protected]
│     └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │   └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │   ├── [email protected]
│ │ │   └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │   └─┬ [email protected]
│ │ │     └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
└── [email protected]

Error: Command Failed

After manually downloading test/rtd (git submodule update didn't work for me), when I run grunt in test/rtd, I'm getting an error while Waiting...>> Error: Command failed: Any idea what's wrong? I'm on Ubuntu 64bit

$ grunt

Downloading http://chromedriver.googlecode.com/files/chromedriver_linux64_2.0.zip
.....................................................

Downloading http://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar
................................................................................
................................................................................
.....................................................................
File "test/rtd/lib/bin/" created.
Launching Selenium-server on port 4444
Launching Karma listener on port 9876
Launching Karma runner on port 9100
Launching Meteor on port 3000
Launching Mirror on port 8000
Waiting...>> Error: Command failed:
Fatal error: Command failed:

$ grunt
Launching Selenium-server on port 4444
Launching Karma listener on port 9876
Launching Karma runner on port 9100
Launching Meteor on port 3000
Launching Mirror on port 8000
Waiting...>> Error: Command failed:
Fatal error: Command failed:

$ grunt
Launching Selenium-server on port 4444
Launching Karma listener on port 9876
Launching Karma runner on port 9100
Launching Meteor on port 3000
Launching Mirror on port 8000
Waiting...>> Error: Command failed:

Custom karma.conf.js crashes rtd

I added rtd for my project. Everything was ok, sourcefiles were watched and when I had changed any of them rtd performed its operations - jshint, tests etc. Then I added my own karma.conf.js. Copied it from /var/web-clips/web-clips/node_modules/rtd/karma.conf.js to /var/web-clips/web-clips/test/karma.conf.js and changed basePath to '..'.

After that when rtd is running and I change any of my sourcefiles the following error appears: Fatal error: ENOENT, no such file or directory '/var/web-clips/web-clips/app/.meteor/local/.build173469.build/'

Piece of log:
.....
Loading "Gruntfile.js" tasks...OK

  • chmod, closeWebdriverSessions, default, downloadAndOrStartSelenium, outputPorts, pollServices, postLatestUnitCoverage, runOnce

Running tasks: jshint:app, jshint:test, coffeelint:app, coffeelint:test, bgShell:karmaRun, bgShell:synchronizeMirrorApp, bgShell:instrumentCode, bgShell:runTests, postLatestUnitCoverage, bgShell:killReports, bgShell:runCoverageCheck
Verifying property jshint.app exists in config...OK
Files: [skipped]
Options: force=false, reporterOutput=null
Fatal error: ENOENT, no such file or directory '/var/web-clips/web-clips/app/.meteor/local/.build173469.build/'

"Can't find variable: share" when trying to setup against project using coffeescript

I'm hoping this is a just a newbie problem that someone's run into before. I'm trying to get RTD setup against my meteor project. However we are using coffeescript and consequentially are making use of the "share" object that meteor exposes to get around coffeescript's file-level scoping (http://docs.meteor.com/#coffeescript).

When RTD gets to the "running unit tests" stage we just get "ReferenceError: Can't find variable: share" against all our source files that use the "share" object.

Can anyone suggest any workarounds or fixes for this?

grunt and meteor not running at the same time. Crash.

Following the instructions in the readme..

When I run meteor first, and then grunt, meteor crashes with 'Terminated: 15'

When I run grunt first, meteor won't start, saying "Can't listen on port 3000. Perhaps another Meteor is running?"

When I run grunt first, and try running meteor on a different port (say 3005 or 8080), I get a mongo error repeated 3 times before meteor gives up: Unexpected mongo exit code 100. Restarting.

Using Meteor Release 0.6.3.1

Acceptance test timeout

More than likely a dev environment issue, but I've exhausted my resources trying to figure this one out.

Console Output

austinrivas@Austins-MacBook-Pro rtd (master) $ sudo grunt
Password:
RTD is starting up...
Selenium-server on port 4444
Karma listener on port 9876
Karma runner on port 9100
Meteor on port 3000
Mirror on port 8000
Waiting...
- - - Running unit tests - - -
...........
PhantomJS 1.9.2 (Mac OS X): Executed 11 of 11 SUCCESS (0.124 secs / 0.005 secs)
- - - Running acceptance tests - - -

Leaderboard functionality
    increases a players score by 5 when the increment button is clicked

Failures:

  1) Leaderboard functionality increases a players score by 5 when the increment button is clicked
   Message:
     timeout: timed out after 10000 msec waiting for App didn't reset
   Stacktrace:
     undefined

Finished in 11.353 seconds
1 test, 1 assertion, 1 failure, 0 skipped


>> Error: Command failed:
Fatal error: Command failed:

Completed in 24.433s at Wed Oct 16 2013 19:36:46 GMT-0700 (PDT) - Waiting...

Screen Hangs

screen shot 2013-10-16 at 7 39 20 pm 2

karma-cli required by Gruntfile.js

npm i -g karma doesn't put a karma executable in your path (I think it used to?). I had to install karma-cli to run grunt from the test/rtd directory. Pull request forthcoming.

TypeError: TemplateClass.prototype[templateName].eventMap[key] is not a function

MacOS 10.8.3, node v0.8.14

  • - - Running unit tests - - -
    .......
    Firefox 15.0 (Mac) Template.player [click] event clicking a player sets them to the selected player in the session FAILED
    TypeError: TemplateClass.prototype[templateName].eventMap[key] is not a function in /Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/lib/meteor-stubs.js (line 84)
    @/Users/laurent/dev/meteor/real-time-development-with-meteor/test/rtd/lib/meteor-stubs.js:84
    @/Users/laurent/dev/meteor/real-time-development-with-meteor/test/unit/client/leaderboard.js:79

...
Firefox 15.0 (Mac): Executed 11 of 11 (1 FAILED) (0.06 secs / 0.008 secs)

Error: Command failed:
Fatal error: Command failed:

This setting crashes mongodb when MONGO_URL is set

Hello,

when I try to start your setting as described in the README.md everything works perfect as long as I use the embedded minimongo.

Trying to use a real mongodb the script kills my mongodb.

I am on OSX 10.8 using Node v0.10.4 and Meteor 0.6.2.1

Did you encounter this issue? Starting the meteor app without the testing infrastructure works as expected.

Best regards

Sebastian

git submodule update

I was following the README to set up this environment, and when I type "git submodule update" I'm getting a permission denied. Am I doing something wrong?

$ git submodule init
Submodule 'test/rtd' ([email protected]:xolvio/rtd.git) registered for path 'test/rtd'

$ git submodule update
Cloning into 'test/rtd'...

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:xolvio/rtd.git' into submodule path 'test/rtd' failed

rsync error

Hi,
I'm trying to checkout your nice example project. Unfortunately I always get this error:

meteor-rtd-example-project xyz$ sudo  ./node_modules/.bin/rtd --debug
Running "bgShell:killAll" (bgShell) task
[D] Task source: /Users/xyz/xyz/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "downloadAndOrStartSelenium" task
[D] Task source: /Users/xyz/xyz/meteor-rtd-example-project/node_modules/rtd/Gruntfile.js

Running "bgShell:startKarma" (bgShell) task
[D] Task source: /Users/xyz/xyz/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:synchronizeMirrorApp" (bgShell) task
[D] Task source: /Users/xyz/xyz/meteor-rtd-example-project/node_modules/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
>> rsync: link_stat "/app/." failed: No such file or directory (2)
>> rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
>> cp: /test/acceptance/fixtures/*: No such file or directory
>> /bin/sh: /build/mirror_app/.meteor/packages: No such file or directory
>> /bin/sh: /build/mirror_app/.meteor/packages: No such file or directory
>> /bin/sh: /build/mirror_app/.meteor/packages: No such file or directory
>> /bin/sh: /build/mirror_app/.meteor/packages: No such file or directory
Fatal error: Command failed: rsync -av --delete -q --delay-updates --force --exclude=".meteor/local" /app/ /build/mirror_app;mkdir -p /build/mirror_app/packages;cd /build/mirror_app/packages;ln -s /Users/xyz/xyz/meteor-rtd-example-project/node_modules/rtd/lib/istanbul-middleware-port .;ln -s /Users/xyz/xyz/meteor-rtd-example-project/node_modules/rtd/lib/meteor-fixture .;cp /test/acceptance/fixtures/* /build/mirror_app/server;echo >> /build/mirror_app/.meteor/packages;echo http >> /build/mirror_app/.meteor/packages;echo istanbul-middleware-port >> /build/mirror_app/.meteor/packages;echo meteor-fixture >> /build/mirror_app/.meteor/packages;

What could be wrong?
Thanks!

Unknown error

Hello I want to share this error. Isn't urgent for me but I think it's not right. It happens with this test project when I copy the karma.conf.js file to the test directory (for example to add firefox, but in this case I left it just the same, I just did the cp, if I remove it, it works ok, the same behavior for a custom project)

I tried with node v0.11 and v0.10

Here is the output with --debug:

bug@intag-vm1:~/workspace/meteor-rtd-example-project/test/rtd$ sudo grunt --debug 
Running "bgShell:killAll" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "downloadAndOrStartSelenium" task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/Gruntfile.js

Running "bgShell:startKarma" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:synchronizeMirrorApp" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:instrumentCode" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
.
Processed [3] files in 0 secs

Running "bgShell:startMirrorApp" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "bgShell:startApp" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

Running "pollServices" task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/Gruntfile.js
RTD is starting up...
[[[[[ ~/workspace/meteor-rtd-example-project/app ]]]]]

[[[[[ ~/workspace/meteor-rtd-example-project/build/mirror_app ]]]]]

=> Meteor 0.7.0.1 is available. Update this project with 'meteor update'.
=> Meteor server running on: http://localhost:3000/
=> Meteor 0.7.0.1 is available. Update this project with 'meteor update'.
Initializing mongo database... this may take a moment.
=> Meteor server running on: http://localhost:8000/

Running "outputPorts" task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/Gruntfile.js
Selenium-server on port 4444
Karma listener on port 9876
Karma runner on port 9100
Meteor on port 3000
Mirror on port 8000

Running "watch" task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-contrib-watch/tasks/watch.js
Waiting...OK
>> File "../../app/.meteor/packages" changed.
>> File "../../app/.meteor/local" deleted.
Running "jshint:app" (jshint) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-contrib-jshint/tasks/jshint.js
>> 3 files lint free.

Running "jshint:test" (jshint) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-contrib-jshint/tasks/jshint.js
>> 11 files lint free.

Running "bgShell:karmaRun" (bgShell) task
[D] Task source: /home/intag/workspace/meteor-rtd-example-project/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee

- - - Running unit tests - - -
[2014-01-30 18:24:25.066] [DEBUG] config - Loading config /home/intag/workspace/meteor-rtd-example-project/test/karma.conf.js
PhantomJS 1.9.7 (Linux): Executed 0 of 0 ERROR (0.234 secs / 0 secs)
PhantomJS 1.9.7 (Linux): Executed 0 of 0 ERROR (0.234 secs / 0 secs)
PhantomJS 1.9.7 (Linux): Executed 0 of 0 ERROR (0.234 secs / 0 secs)
PhantomJS 1.9.7 (Linux): Executed 0 of 0 ERROR (0.234 secs / 0 secs)
>> Error: Command failed:
Fatal error: Command failed: 

Completed in 7.598s at Thu Jan 30 2014 18:24:25 GMT-0300 (ART) - Waiting...

problem starting up

Trying to test out RTD, followed instructions from README, but when I run grunt, test/acceptance/leaderboard.spec.js errors on line 9.

Fatal error: Error: Cannot find module '../rtd/node_modules/selenium-webdriver'

https://github.com/xolvio/meteor-rtd-example-project/blob/master/test/acceptance/leaderboard.spec.js#L9

Here are the contents of my node_modules directory within rtd directory... no selenium-webdriver:

freeport
growl
grunt
grunt-bg-shell
grunt-contrib-coffee
grunt-contrib-jshint
grunt-contrib-watch
grunt-cucumber
grunt-exec
grunt-zip
hash_file
karma-chrome-launcher
karma-coffee-preprocessor
karma-coverage
karma-firefox-launcher
karma-html2js-preprocessor
karma-jasmine
karma-junit-reporter
karma-phantomjs-launcher
karma-requirejs
karma-script-launcher
libnotify
request
requirejs

Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.