【问题标题】:How to write unit tests for angularjs project using cypress如何使用 cypress 为 angularjs 项目编写单元测试
【发布时间】:2021-02-15 02:59:22
【问题描述】:

我是 cypress 的新手,我想为我现有的应用程序编写单元测试。谁能建议如何使用 cypress 和代码覆盖率为 angular js 编写单元测试?

我已按照文档进行操作,但没有得到综合结果。代码覆盖率索引文件仅显示规范文件。

https://i.postimg.cc/FH0fnRrM/Screen-Shot-2020-11-09-at-10-53-56-AM.png

https://i.postimg.cc/wjkNjvCh/Screen-Shot-2020-11-09-at-10-54-45-AM.png

【问题讨论】:

  • 你检查过official documentation吗?
  • 是的,我检查了官方文档,但代码覆盖率没有显示组合结果。

标签: angularjs code-coverage cypress istanbul nyc


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多