2 questions about developing a new Karma adapter

10 views
Skip to first unread message

Jeff Schwartz

unread,
Jun 15, 2015, 8:50:06 AM6/15/15
to karma...@googlegroups.com

I need to develop a new adapter for Preamble/Karma integration. Preamble (http://jeffschwartz.github.io/preamble/) is a BDD testing framework and currently has a few hundred users and they'd really appreciate it if I can integrate Preamble with Karma. Time constraints thwarted my 1st attempt at this last year but now I can no longer delay producing the adapter. 

Is there a template project that I can use to model my adapter on? 

Preamble internally implements PubSub so I'd like to rely on that to provide my integration with Karma, meaning that I'd like to build my adapter so that it subscribes to Preamble's events. Is this a good approach? Pros/cons?

dignifiedquire

unread,
Jun 15, 2015, 2:57:23 PM6/15/15
to karma...@googlegroups.com
Hey

I'm always happy to hear when people write new adapters for karma :)
There is no template at the moment but I suggest looking at karma-mocha and karma-jasmine for inspiration/details. In general it sounds good to use the pubsub system from preamble to gather the needed data if all you need is exposed there I can't say much more on that though as I don't know how preamble works internally.

Good luck and let us know if you need more help.


Cheers
Friedel

Reply all
Reply to author
Forward
0 new messages