41

What are the recommended ways to test web applications developed with the framework?

The meteor unofficial FAQ entry on TDD best practices is quite short.

3

3 Answers 3

6

Sebastian Maier has a repository where he created a meteor app and tests it with Jasmine. You could check it out, here's a link.

1
4

The Meteor documentation is woefully and/or intentionally silent on the subject of testing, other than this one quote:

Great care has been taken to give the core Meteor packages the minimal set of dependencies, so you can use your favorite templating, testing, or DOM manipulation frameworks.

So I guess you're free to test however you like, which is supposed to be a feature.

There are a number of fine testing tools that would be applicable to a Meteor webapp, Mocha being one example.

2
  • 7
    I would love to see a continuously running unit testing framework which updates as you edit, just the meteor way of coding and effecting. Oct 15, 2012 at 6:56
  • Velocity, Meteor's official testing framework, was just released. Oct 23, 2014 at 7:31
2

With v0.9.4, released Oct 13, 2014, Meteor has an official test framework, meteor-velocity. It supports Jasmine, Mocha and Selenium.

meteor run --test

The architect behind Velocity has published a book, Meteor Testing.

See also http://velocity.meteor.com/

Not the answer you're looking for? Browse other questions tagged or ask your own question.