How to test Meteor packages with Meteor 1.0?

From what I understand, there are two main packages that help in testing the package - TinyTest and Velocity, which have become the official Meteor testing platform .

From Meteor DevShop in June , the Velocity team said that Velocity can work together with TinyTest, but I don’t understand the difference in functions, these two packages provide, one (TinyTest) redundant?

Is TinyTest designed for unit testing only? If I need to integrate testing, functional testing, will I need to turn to Velocity and the supported infrastructure? Or is something else completely different? There is a comparison table, but it is a bit outdated.

+4
source share
2 answers

TinyTest is currently the only solution that allows testing packages, this is one of the reasons why it is still on the map. Another reason is that TinyTest was the official test solution before Velocity, and therefore it still has the following.

( , ) Jasmine. ( , ) Jasmine Mocha-web. Xolv.io Cucumber, Casper Nightwatch. Xolv.io webdriver mocha/jasmine, webdriver TinyTest, !

, , "", .

, Velocity, .

+5

Velocity + Jasmine.

.

VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter package-to-test

+1

Source: https://habr.com/ru/post/1570755/


All Articles