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

后端 未结 8 1417
名媛妹妹
名媛妹妹 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:54

    If you're desperate for any output in a Terminal window so you can have data to review after the test has completed and the browser has closed, console.error() seems to do the trick.

提交回复
热议问题