Questions tagged [laika]

Laika is a testing framework for meteor.

Laika is a feature rich testing framework for . It allows to easily write tests interacting with both server and client(s).

Laika is a combination of technologies including , , meteor itself and some tricks.

12 questions
7
votes
1 answer

What are the key differences between laika, RTD and Safety Harness for testing Meteor applications?

Laika, RTD and Safety Harnesss are testing frameworks for Meteor. http://arunoda.github.io/laika/ http://xolvio.github.io/rtd/ http://safety-harness.meteor.com What are the key differences between these projects? What are the pros and cons of…
Camilo
  • 2,844
  • 2
  • 29
  • 44
5
votes
2 answers

How to test Meteor router or Iron router with laika

I'm using laika for testing and the meteor-router package for routing. I want to do tests that navigate to some page, fill a form, submit it and check for a success message, but I'm stuck on the navigation part. This was my first attempt: var assert…
Camilo
  • 2,844
  • 2
  • 29
  • 44
4
votes
1 answer

Integration tests with Laika and PhantomJS

I just started using Laika for doing some TDD on my Meteor app. Though, I would like to do some integration tests, as unit tests isn't that valuable to me. Can I do some screen capturing using PhantomJS through Laika? E.g. I want to click html…
mfaerevaag
  • 730
  • 5
  • 29
1
vote
1 answer

Adding Laika auto-numbering to top-level directory titles

I have the directory.conf: title = "SRLLab Manual" autonumbering { scope: all } navigationOrder = [ introduction multi-arm-bandits finite-markov-decision-processes ] In each of the sub-level directories I have a directory.conf and a…
user2051561
  • 838
  • 1
  • 7
  • 21
1
vote
1 answer

Fail to run laika framework for meteor

I'm trying to run laika on my VM, but it still when I run the laika script, there is an error. Here is the error : nodejs [rebolon] /home/project/hello-laika % sudo laika injecting laika... loading phantomjs... loading initial app pool... …
Rebolon
  • 1,257
  • 11
  • 29
1
vote
2 answers

meteorjs: laika client and server test timout

I'm trying out laika test framework for meteor. The second example from the homepage uses observe() and I think it is not observing correctly. suite('Posts', function() { test('using both client and server', function(done, server, client) { …
Julian Mann
  • 6,256
  • 5
  • 31
  • 43
0
votes
1 answer

Links to json files

my directory structure is ├── xxx │   ├── 01.md | └── 02.md ├── auth │   ├── j1.json │   ├── j2.json │   └── j3.json └── default.template.html And I link jsons from markdowns like Auth. It makes sense as we use there files as test scenarios and…
user1698641
  • 211
  • 1
  • 12
0
votes
1 answer

How can I change a laika test from testing successful insert to testing for failed insert?

I've updated my allow and deny rules from the client. No inserts, updates or removes should work on the client side. Previously this test (listed below) passed because it tested to see if the client could insert into the collection. Now I want to…
JoshJoe
  • 1,482
  • 2
  • 17
  • 35
0
votes
1 answer

Error: spawn ENOENT in WebStorm file watcher command

I'm building a Meteor app, and experimenting with testing with Laika. I'm writing coffeescript in WebStorm 7 on Ubuntu, and trying to use WebStorm's File Watcher feature to re-execute laika every time a coffeescript file is changed. As context, I…
orlade
  • 2,060
  • 4
  • 24
  • 35
0
votes
2 answers

Callbacks in Laika tests are not called

Meteor.collection.insert() accepts callback as an argument. As an example, one can create a brand new Meteor project and run the following code in the browser's console. my_collection = new Meteor.Collection("myCollection"); my_collection.insert( …
jonS90
  • 1,369
  • 2
  • 11
  • 15
0
votes
1 answer

I can't get laika to work with bdd

I'm using meteor 0.6.4.1, laika 0.2.24 and node.js 0.10.12. Tests with tdd worked fine, but I tried to use bdd with laika and it failed. I downloaded this demo project https://github.com/zvictor/laika-extended-example but also failed. I made a…
Camilo
  • 2,844
  • 2
  • 29
  • 44
0
votes
2 answers

Couldn't get laika to work on meteor

I'm using meteor 0.6.4, node 0.10.12 and laika 0.2.8. I followed the instructions on the getting started page and I get this error: injecting laika... loading phantomjs... cleaning up injected…
Camilo
  • 2,844
  • 2
  • 29
  • 44