How to test your Meteor application
- Unit Test
- integration test
- acceptance/end-to-end test
- load/stress test
- Client/server data:
- Reactivity: delay with changes impact, resolve with
Tracker.afterFlush()
- Load any file in our application (including in imports/ folders) that look like .test[s]., or .spec[s].
- Doesn’t eagerly load any of our application code as Meteor normally would.
- Sets the Meteor.isTest flag to be true.
- Starts up the test driver package This is ideal for unit tests and simple integration tests.
Additionally, Meteor offers a “full application” test mode. This enables you to write much more complex integration tests and also load additional files for acceptance tests.
- It loads test files matching .app-test[s]. and .app-spec[s]..
- It does eagerly load our application code as Meteor normally would.
- Sets the Meteor.isAppTest flag to be true (instead of the Meteor.isTest flag).
These packages don’t do anything in development or production mode.