3 ms·
I had two knee jerk reactions. The first has been discussed already (client side DB access). The second has not. Does Meteor have any opinions on testing? I d
by sleight42 15y ago
I had two knee jerk reactions. The first has been discussed already (client side DB access). The second has not.
Does Meteor have any opinions on testing? I didn't see anything from a quick glance at the docs.
I love the idea of tighter development cycles. But as a Meteor app grow in size and complexity, won't it still need a test suite to prevent regressions?
Eager to hear thoughts on this from the Meteor devs.
- amirhhz 15y agoThat puzzled me, too, I started browsing the code and noticed there's not a lot of testing of the project code itself: https://github.com/meteor/meteor/tree/master/tests https://github.com/meteor/meteor/tree/master/tests So I agree, it would be good to hear from the devs about their opinions and thoughts on testing. (Is there a chance that they think the "realtime-by-default" approach lessens the need for testing?) I'm no testing zealot, but I've found writing tests useful and it would be a shame to be frustrated by that missing piece in an otherwise great project.
- davej 15y agohttp://www.meteor.com/faq/meteor-is-a-early-preview http://www.meteor.com/faq/meteor-is-a-early-preview
- debergalis 15y agoWe've actually written a lot of testing for the core framework packages -- those tests are in each package directory. Look for *_test.js files. https://github.com/meteor/meteor/tree/master/packages/ https://github.com/meteor/meteor/tree/master/packages/ You're 100% right though. We don't have a fully baked story yet for application level testing. It's something we're trying to push forward as soon as we can.
- sleight42 15y agoCool. Thanks for clearing that up. Don't get me wrong: I want to like Meteor. But I've found automated tests too important to my workflow to live without.
- edwinnathaniel 15y agoFrom product adoption perspective, you guys are going to win a lot more users if you can support the following scenario: 1) unit-tests 2) integration-tests 3) provide at least guidance/best-practices on client-side testing in the _headless_ scenario (no complex setup of remote machines with 3-4 browsers installed etc) People may have their opinions about testing UI/client-side (is it end-to-end? is it worth? not testing using the browser no-go?, etc) but the fact that Meteor is leaning toward more code in the client-side will definitely put testing in almost make-or-break decision for a group of developers. GWT with their MVP approach is definitely heading toward that direction and it is quite unfortunate that the client-side JS community out there haven't picked up that style (some brushed GWT off because it is Java). Rails won the heart of many Java developers not only because of its simplicity but also because of automated testing. So, show how easy it is to test the whole Meteor app and I (almost) guarantee you will get many more developers (especially those who skipped the Rails boat).
- sleight42 15y agoOr even those of us (like myself) who are currently on the Rails boat!
- yread 15y agoYeah I also dread the tests that would be necessary to make sure that hot updates won't break anything.