xdescribe vs fdescribe茉莉花 [英] xdescribe vs fdescribe in jasmine
本文介绍了xdescribe vs fdescribe茉莉花的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-
fdescribe
-如果spec.ts文件是用fdescribed
定义的,则执行
-
xdescribe
-如果用xdescribed
定义了spec.ts文件,则从不执行
fdescribe
- Execute if the spec.ts file is defined withfdescribed
xdescribe
- Never execute if spec.ts file is defined withxdescribed
我的理解正确吗?如果在两个单独的spec.ts
文件中同时定义了xdescribe
和fdescribe
怎么办?
Is my understand is correct? and what about if am defined both xdescribe
and fdescribe
in two separate spec.ts
file?
推荐答案
-
xdescribe
将排除这些规范.xdescribe
will eXclude those specs from execution.fdescribe
将首先执行这些规范.如果您同时拥有fdescribe规范,则会忽略"describe"和"xdescribe".fdescribe
will first execute those specs. if you have both the fdescribe specs will be executed and 'describe' and 'xdescribe' are ignored.这篇关于xdescribe vs fdescribe茉莉花的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文