Sam*_*tar 6 angularjs protractor jasmine-spec-reporter
我的量角器测试中有很多Describe块.我得到的测试输出的页面和页面都正确缩进,但是很难看出哪个测试是哪个以及测试进展到了多远.
有没有人试图在Describe中添加列表编号.像这样的东西:
1. Main Page test
1.1 Test xxx
1.2 Test yyy
1.2.1 Describe in describe in describe test
2. XXX Page test
2.1 Test abc
Run Code Online (Sandbox Code Playgroud)
注意,这里点之后的第一个和第二个数字将是描述的结果.
您可以使用jasmine spec reports (>= 1.1.0) 和displaySuiteNumber选项来显示量角器测试的输出。
\n\n输出示例:
\n\n1 first suite\n \xe2\x9c\x97 should failed\n - Expected true to be false.\n \xe2\x9c\x93 should be ok\n\n2 second suite\n \xe2\x9c\x97 should failed\n - Expected true to be false.\n \xe2\x9c\x93 should be ok\n\n 2.1 first child suite\n\n 2.1.1 first grandchild suite\n \xe2\x9c\x97 should failed\n - Expected true to be false.\n - Expected true to be false.\n \xe2\x9c\x97 should failed\n - Expected true to be false.\n \xe2\x9c\x93 should be ok\n
Run Code Online (Sandbox Code Playgroud)\n
归档时间: |
|
查看次数: |
519 次 |
最近记录: |