如果before
挂钩失败并且describe()
中的所有测试未在“魅力”报告中运行,我看不到before()
和after()
挂钩,但是我需要了解发生了什么。
示例:
before(function () {
try {
throw new Error("Error");
} catch (e) {
this.skip();
}
});
it('Test 1', function() {
});
it('Test 2', function() {
});
});
魅力报告示例: