cypress-typescript-coverage-example

时间:2024-05-18 13:23:47
【文件属性】:

文件名称:cypress-typescript-coverage-example

文件大小:11KB

文件格式:ZIP

更新时间:2024-05-18 13:23:47

JavaScript

赛普拉斯+打字稿应用程序+代码覆盖率 :red_heart: 本示例将插件用于测试运行程序。 该存储库旨在如何针对Typescript应用在Cypress中设置代码覆盖率。 此特定设置的棘手部分是配置Istanbul来检测您的Typescript代码。 有关其工作原理的更多信息,请参见文档。 运行示例:person_running_light_skin_tone:‍ 首先,请确保您已安装 ,然后: yarn 您可以运行示例打字稿应用程序: yarn start 或在代码覆盖范围内运行赛普拉斯测试: CODE_COVERAGE=true yarn test :warning: 我们正在环境变量后面启用代码覆盖,以仅在这种情况下检测我们的代码。 不要向您的用户提供检测代码。 要查看代码覆盖率报告,只需执行以下操作: open coverage/lcov-report/index.html 它是如何工作的 :face_with_raised_eyebrow: 安装方便的,我们将需要由Cypress运行的已


【文件预览】:
cypress-typescript-coverage-example-master
----public()
--------index.html(838B)
----webpack.config.js(712B)
----src()
--------index.tsx(146B)
--------App.tsx(755B)
----cypress()
--------integration()
--------fixtures()
--------plugins()
--------support()
----cypress.json(41B)
----babelrc.js(354B)
----tsconfig.json(494B)
----LICENSE(1KB)
----README.md(2KB)
----renovate.json(211B)
----.gitignore(288B)
----package.json(1KB)

网友评论