Karma Jasmine HTML Reporter

1,125 views
Skip to first unread message

Daniel Tabuenca

unread,
Oct 1, 2013, 5:19:12 AM10/1/13
to karma...@googlegroups.com

I've been missing the nice specification report jasmine used to give when running it without karma, so I tried my hand at writing a plugin:


I haven't used nodejs before, and I didn't have time to learn anything in-depth, so this should be considered a quick-and-dirty implementation.

I took the karma-junit-reporter, took out what I didn't need, renamed a few things, and added my stuff. The reporter basically produces a POJO model of the test runs and then uses a mustache template to render to html. The template is an incomplete ripoff of the native jasmine report, however you can make your own template (in mustache) and pass it in to the templatePath config option. 

All comments, suggestions, and pull requests are welcome. 





Vojta Jína

unread,
Oct 6, 2013, 6:59:09 PM10/6/13
to karma...@googlegroups.com
Nice! Thanks for sharing Daniel.


--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages