如何在描述中获取字符串消息,并在运行量角器的控制台上显示它?

时间:2016-08-04 22:09:33

标签: protractor

我对茉莉,摩卡和量角器都很陌生......我必须在量角器框架中调试一些javascript代码,当我运行测试时,描述中的消息和阻止永远不会在控制台上报告/显示。 / p>

以下是一个例子:

describe('test case 1 - online ordering',function() {
      it(' check all the steps for online ordering',function() {

      }
}

当我在控制台上运行测试时,我认为describe中的消息和块都会显示。

我这样运行:

grunt myTestcase

1 个答案:

答案 0 :(得分:0)

要在控制台上打印,您需要将 jasmineNodeOpts 放在conf.js文件中,然后运行:

gpg: skipped "10XXXXXXXXX3892": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object 
gpg: skipped "MyUpdates": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object