Redirect calls to console.log() to standard output in Jasmine tests

后端 未结 8 1443
名媛妹妹
名媛妹妹 2021-02-02 05:00

I\'m using Jasmine via the jasmine-maven-plugin, and I would like to see console.log() messages in the Maven build output. Is there a way to achieve this?

If console.log

8条回答
  •  一生所求
    2021-02-02 05:34

    Jasmine 1.x

    You can use:

    jasmine.log("I've got a big log.");
    

    Jasmine 2+

    Use console.log directly, as per douglas-treadwell's comment below.

提交回复
热议问题