我的量角器测试中有很多的描述块.我的页面和测试输出的页面都正确地缩进,但很难看出哪个测试是测试进展的程度.
有没有人试图添加一个列表编号到描述.这样的事情
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
请注意,这里第一个也可能是第二个数字后的点将是描述的结果.
您可以将
jasmine spec reporter(> = 1.1.0)与displaySuiteNumber选项一起显示量角器测试的输出.
原文链接:https://www.f2er.com/angularjs/140609.html输出示例:
1 first suite ✗ should Failed - Expected true to be false. ✓ should be ok 2 second suite ✗ should Failed - Expected true to be false. ✓ should be ok 2.1 first child suite 2.1.1 first grandchild suite ✗ should Failed - Expected true to be false. - Expected true to be false. ✗ should Failed - Expected true to be false. ✓ should be ok