Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That 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

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.


We'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/

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.


From 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).


Or even those of us (like myself) who are currently on the Rails boat!


Cool. 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.



Yeah I also dread the tests that would be necessary to make sure that hot updates won't break anything.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: