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.

Amarnath Balasubramanian
  • 9,300
  • 8
  • 34
  • 62
theIntuitionist
  • 411
  • 3
  • 5

3 Answers3

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.

Martin Josefsson
  • 953
  • 12
  • 24
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.

Yusuf X
  • 14,513
  • 5
  • 35
  • 47
  • 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. – Qichao Dong Oct 15 '12 at 06:56
  • [Velocity](http://stackoverflow.com/a/26523192/1269037), Meteor's official testing framework, was just released. – Dan Dascalescu Oct 23 '14 at 07: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/

Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404