有没有一种方法可以跳过Angular中的单元测试套件?

mat*_*ang 5 angular angular6

到目前为止,我有一些不应运行的单元测试,是否可以跳过它们?除了在要运行的程序上使用fdescribe之外。

rrd*_*rrd 7

如果您想跳过测试,则在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)