prescript:端到端的测试跑步者,令人陶醉

时间:2021-05-17 08:50:19
【文件属性】:
文件名称:prescript:端到端的测试跑步者,令人陶醉
文件大小:2.83MB
文件格式:ZIP
更新时间:2021-05-17 08:50:19
javascript test-framework TypeScript 处方 prescript是一个基于Node.js的测试运行程序,它使编写端到端/验收测试变得很有趣。 使用单元测试框架(例如Mocha)编写功能和端到端测试(例如,使用Puppeteer或Selenium)有时会很痛苦,因为当某一步骤失败时,您必须从头开始重新运行测试以验证您是否解决它。 与单元测试相比,端到端测试通常非常慢。 Prescript通过允许您将测试表示为多个离散步骤来解决此问题。 然后, prescript带有交互式开发模式,在该模式下,您可以热重载测试脚本并在步骤之间跳转。 这意味着您在编写测试时就进行测试。 而且,如果您输入有误,则可以修复测试,热重装并继续进行测试,而不必重新运行整个测试套件。 文献资料 发展 运行Prescript示例方案: yarn test-examples 运行单个方案: ./bin/prescript " ./examples/ca
【文件预览】:
prescript-master
----.eslintrc.yml(304B)
----bin()
--------prescript(38B)
----docs()
--------.vuepress()
--------guide()
--------README.md(1KB)
----package.json(1KB)
----.github()
--------workflows()
----.prettierrc(68B)
----jest.config.js(189B)
----src()
--------singletonApi.ts(4KB)
--------prettyFormatStep.ts(779B)
--------loadTestModule.ts(11KB)
--------createTestIterator.ts(3KB)
--------isStepExist.ts(213B)
--------singleton.ts(594B)
--------StepName.ts(2KB)
--------globalState.ts(99B)
--------createUI.ts(6KB)
--------currentActionContext.ts(168B)
--------loadTestModule.test.ts(2KB)
--------createReporter.ts(4KB)
--------isStepExist.test.ts(724B)
--------cli.ts(12KB)
--------walkSteps.ts(296B)
--------types.ts(3KB)
--------singletonAllureInstance.ts(307B)
--------configuration.ts(281B)
--------createTestIterator.test.ts(7KB)
----tsconfig.json(361B)
----types-test()
--------types-test.ts(331B)
----examples()
--------defer()
--------pending()
--------attachment()
--------action-wrapper()
--------multiple()
--------testAll.js(1KB)
--------independent()
--------regression()
--------calculator()
--------prescription-state()
----.gitignore(792B)
----.circleci()
--------config.yml(1KB)
----README.md(1KB)
----yarn.lock(435KB)
----.eslintignore(41B)
----cli.js(133B)
----.gitpod.yml(30B)
----.vscode()
--------settings.json(54B)
--------tasks.json(309B)

网友评论