I've created a project page that has a screencast of RTD in action. You take a look here
And for anyone that missed out on the TDD with Meteor talk at the Meteor Devshop 4, you can see annotated slides here
--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks again Arunoda.
Let's talk after you've tried it and explore options with Laika. Two hands are better than one :)
4. A prototype containing all the collection methods as per the Meteor documentation. This will allow you to add spies with frameworks such as Jasmine or Mocha which expect the methods to exist before spying.
--
- When moving contents to the app directory, don't forget to include the .meteor file!
- package.json and README.md should stay in root directory. Final result looked like the following for me:
- After running the following:
sudo npm i -g karma phantomjs selenium-webdriver grunt-cli jasmine-node istanbul chai mocha
- I needed to run this, which was quite confusing and not documented:
cd appRoot
npm init
npm install grunt
cd test/rtd
npm install grunt-bg-shell
npm install grunt-contrib-watch
npm install grunt-zip
npm install request
npm install hash_file
npm install freeport
- Karma Runner is still titled 'Testacular' in the Browser tab. Karma Runner is a much better name. Maybe that should be updated?
- package.json and README.md should stay in root directory. Final result looked like the following for me:
- README.md
- app
- build
- node_modules
- package.json
- test
- After running the following:
sudo npm i -g karma phantomjs selenium-webdriver grunt-cli jasmine-node istanbul chai mocha
- I needed to run this, which was quite confusing and not documented:
cd appRoot
npm init
npm install grunt
cd test/rtd
npm install grunt-bg-shell
npm install grunt-contrib-watch
npm install grunt-zip
npm install request
npm install hash_file
npm install freeport
- Karma Runner is still titled 'Testacular' in the Browser tab. Karma Runner is a much better name. Maybe that should be updated?
- Also, it would be quite nice to have a home page with links to the various pages involved (Meteor, Mirror, Karma, Selenium, Coverage). Which is the Karma runner on port 9100, right? What exactly *is* the main page?
- Right now, it's not intuitive why we're running grunt in order to launch RTD. A bash script with an alias might really help tie things together.
- Would also be great to have some guidance on how to get from having the Karma runner up and running to being able to follow the instructions in your blog. For example, it might be great to have some default instructions on the Karma Runner page on how to create your first unit test. Something basic along the lines of 'Congrats! Karma Runner is Working! To create your first unit test, go to test/unit, create a file called test.js, add the following code `… unit test code… ` and check out the Karma runner on port 9100.
| phone: 55 11 9343 0994 skype: teonimesic |
--
--
You received this message because you are subscribed to a topic in the Google Groups "meteor-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meteor-talk/3QEhNXq2Rb4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to meteor-talk...@googlegroups.com.
Hey Abigail
I think having the submodule works for when somebody else is maintaining code that you also contribute to, which is perfect for RTD. I did consider a package but opted for a submodule for that reason. I also have meteoric-sh setup like this in my project for doing deployments to AWS.
My experience of setting up projects has taught me to always have everything needed to setup/code/test/deploy under one tree as it makes developer ramp-up easier and the project portable build scalability (think multiple cloud agents agents).
With the above two points in mind, I personally wouldn't separate the main source code as I see test and app code as tightly coupled and should always be maintained in tandem.
The place I can see where that might be required is if you use some git-based deployment, such as Heroku. Test code of course should never be deployed.
Sam
--