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

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

    I'm using jasmine 2 via guard and phantom js and have found that standard console.log messages within tests are output to the jasmine spec runner's console just fine.

    I've also found that console.log messages within the javascript code elements that I am testing do get written out to stdout but not console.log messages within the tests themselves.

提交回复
热议问题