到目前为止,我有一些不应运行的单元测试,是否可以跳过它们?除了在要运行的程序上使用fdescribe之外。
如果您想跳过测试,则在describe()或it()前面是“ x”:
xdescribe('some test', () => { });
Run Code Online (Sandbox Code Playgroud)
也许只是跳过一个测试块:
describe('some other test', () => {
xit('skip this test', () => { });
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1818 次 |
| 最近记录: |