can I specify messages in tests to be reported in my output?

11 views
Skip to first unread message

Lucy Aslett

unread,
Nov 19, 2015, 9:44:01 AM11/19/15
to karma-users
Does a plug-in exist that can help with the following - if not, any ideas to get me started?

Where I work, we are exploring JavaScript unit testing and have been experimenting with Karma, Jasmine, and Mocha.  We already have server-side tests that are written in xUnit (C# back-end), and those allow us to add Console.Writeline("some text"), and the text is reported out in the reporter with the test.  We'd like to do the same with our JavaScript unit tests.  I'm a tester with some development skills, but beginning level (more in C#, just saw Node for the first time a month ago).  Using the Junit reporter and debugging I can see how the reporter object has properties like description, that we can use in reporters - but I'm guessing there isn't anything in the result object that captures any logging from the test?
Reply all
Reply to author
Forward
0 new messages