Jasmine 的 exclude/focus 操作导致退出状态 1
Jasmine's exclude/focus operations cause exit status 1
我有 Karma 运行ning Jasmine 测试。我 运行 这些使用 npm
脚本,最终使用 Angular CLI 的 ng test
.
当我尝试使用 xdescribe
、xit
、fdescribe
或 fit
时,我的测试 运行 符合预期,但我看到错误.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! {my package@version} test-watch: `ng test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the {my package@version} test-watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm
大声抱怨错误。 ng test
不抱怨,不入表。我假设 ng
也因为退出状态而中止。
这是故意退出失败的吗?由记者决定?
原来这是一个失败的覆盖阈值。显然,排除一些或几乎所有规格或套件会极大地影响覆盖范围。
我有 Karma 运行ning Jasmine 测试。我 运行 这些使用 npm
脚本,最终使用 Angular CLI 的 ng test
.
当我尝试使用 xdescribe
、xit
、fdescribe
或 fit
时,我的测试 运行 符合预期,但我看到错误.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! {my package@version} test-watch: `ng test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the {my package@version} test-watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm
大声抱怨错误。 ng test
不抱怨,不入表。我假设 ng
也因为退出状态而中止。
这是故意退出失败的吗?由记者决定?
原来这是一个失败的覆盖阈值。显然,排除一些或几乎所有规格或套件会极大地影响覆盖范围。