arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

Laika doesn't work with velocity tests. #148

Open frozeman opened 9 years ago

frozeman commented 9 years ago

I tried to add laike to an app where i have also the sanjo:jasmine velocity package add. It fails stating:

    [server log] TypeError: Object #<Object> has no method 'registerTestingFramework'
  at [object Object]._.extend.registerWithVelocity (/Users/frozeman/.../my-meteor-blog/.meteor/local/build/programs/server/packages/sanjo_jasmine.js:200:14)

If i remove sanjo:jasmine it fails, because it want to read also the jasmine test files:

ReferenceError: describe is not defined

Could you add an option to specify the folder in which laika is looking for the tests? All velocity frameworks must be placed inside a folder named after the testing framework like tests/jasmine or tests/mocha. Could we add the option to only look in tests/laika?

I'm currently finishing up my book (https://www.packtpub.com/web-development/building-single-page-web-apps-meteor) and would like to present laika in the testing chapter, next to velocity.

If you can make it work with velocity would be great, otherwise, if you at least add the option to specify the folder, so it could work along velocity (though one has to remove sanjo:jasmine before, which is also not ideal) i could leave laika in the chapter, otherwise i have to leave it out as its incompatible to meteors official testing framework :(

I'm kind of in a hurry as the book will be published soon, so i would appreciate if you could look into this asp.

apendua commented 9 years ago

@frozeman I think this option is already there:

https://github.com/arunoda/laika/issues#L8

Can you please verify if it fulfills your needs?