Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.66 KB

TESTING.md

File metadata and controls

27 lines (20 loc) · 1.66 KB

How to run Tests

As of July 2013, Meteor does not provide an official testing method. While this is understandable (Meteor latest release is v0.6.4, indicating how it is still new and immature), testing is beneficial for the stability of a software.

Laika is a project to create rich tests, which are able to emulate client/server operability. It is a 3rd party, non-official tool and - like Meteor - it is still in its infancy. Unlike SematAcc (server and client), Laika is not able to run on Windows. Therefore, the tests can only be run where Laika can be installed - either on GNU/Linux or Mac OS X.

As Laika installation is not straightforward, we wrote more detailed and easier instructions to properly install Laika on Ubuntu 13.04.

Another tutorial (screencast) is available for OS X

After proper installation of Laika, the tests should be run from within SematAcc project root, with:

laika -t 5000

Some notes:

  • The -t option specifies a timeout in ms. If timeout errors appear, try to higher it to 7000-10000.
  • The test need memory and rapid disk I/O operations. Tests from Virtual Machines sometimes fail because of timeouts.
  • Sometimes, the externally installed MongoDB remains dirty if the tests fails. Delete the contents of /data/db to clean it.
  • Also, look for active Node.js and Meteor processes when the tests finish. Kill them eventually.
  • Be patient :-) Laika is very new.