Questions tagged [tinytest]

TinyTest is the package testing framework for Meteor. It can't test applications themselves - for that, use Velocity.

TinyTest is the package testing framework for . It can't test applications themselves - for that, use .

Learn

20 questions
0
votes
0 answers

Meteor: how to get current directory while testing packages

I have test configuration files and such that I'd like to run tests on, but the other ways I've used to get the current directory (e.g. process.cwd()) fail with 'process not defined' errors. The Assets set only allows text and binary read (not…
ssteinerX
  • 191
  • 1
  • 6
0
votes
1 answer

Tinytest add a file object not defined

I'm having a problem with TinyTest. I have a test below Tinytest.add('x - template', function (test) { var t = new Widget("ddd"); test.equal(t.html,""); }); and this function in another file (test.js) function Widget(html){ this.html…
TLR
  • 577
  • 3
  • 8
  • 24
0
votes
1 answer

can you use tinytest to test a package that uses other packages

I have some tinytests, simple server unit tests. Separately they run fine, but if i run them together I get errors on my collections. What else might cause an error like the below? I think its related to defining the exports in a JS file and the…
dcsan
  • 11,333
  • 15
  • 77
  • 118
0
votes
1 answer

Is it safe to rely on 'Facts' package internals for package testing purposes?

I have a package (yeputons/meteor-smart-publish) which uses observeChanges a lot, and I want to add a test (I use TinyTest right now) which allows me to ensure that all such observers are terminated in the end and no handle.stop() was skipped. The…
yeputons
  • 8,478
  • 34
  • 67
0
votes
1 answer

How do I write tests for Meteor which involves templating?

I recently created a Meteor package and want to write some tests. What my test package basically do is that users can insert into the template {{> abc}} and they'll get an HTML element printed on the page. With TinyTest, all you can do is test the…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
1
2