1.1.0 • Published 2 years ago

@cherry-next/cherry-core v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

cherry-core

Table of Contents

Background

hi, 准备开始UI自动化了吗?

觉得难吗?

建议你从这个库开始!

用简单的逻辑描述你的工作,剩下的交给我

Install

推荐使用 yarn。十分简单。

yarn add @cherry/cherry-core

Usage

cherry main.js # default use cherry-drier
cherry -b   # get local browsers
->  usable browsers: [ 'chrome', 'ie', 'firefox', 'edge', 'edge-legacy' ]
cherry chrome  main.js // use other browser

主流程

  • 采用 cli 脚本维度进行执行。这样可以以多进程维度同时执行多个测试。 初始启动浏览器,进入待执行界面。
  • 等待脚本文件执行, page.to 起始挂载 运行的首个测试地址。整个脚本内容为单个 case/flow
  • 同样采用合并脚本的形式执行串联任务。
  • 运行时需提供当前执行状态,是以并合执行还是普通单文件。以使用户单文件情况下也可正常调试。
  • 日志逻辑相同。

起始命令用 page.create 新窗口不影响老的用例,但依旧可以继承老数据。

跨平台的系统通知

node-notifier https://github.com/mikaelbr/node-notifier

开发规范

  1. 复杂函数必须采用中文注释,不建议使用函数同名中文注释,注释仅表达坑点,而非实现。
  2. 字符串强制使用 ' 单引号,禁止非必要的;符号。
  3. 引用对象必须给明,强制类型,禁止传递any等不明确内容。
  4. 新功能必须添加单元测试,上线前单元测试必须通过。
  5. 禁止在非必要的时候写大函数,避免代码臃肿,单一使用的地方禁止封装函数(除非它可能被调用)。

问题跟踪

使用我们的 Coding Issues 页面 报告错误提出改进建议

贡献

阅读我们的贡献指南 ,了解如何为项目做出贡献。

徽章

向大家展示您正在使用 CherryCore: Tested with CherryCore

要显示此徽章,请将以下代码添加到您的存储库自述文件中:

<a href="https://coding.jd.com/cherry/cherry-core/">
    <img alt="Tested with CherryCore" src="https://img.shields.io/badge/tested%20with-CherryCore-2fa4cf.svg">
</a>

执照

Code released under the MIT license.

Creators

京东集团-京东零售-商业提升事业部-广告架构部-技术效能部

帮助

zhouyuan11@jd.com

@babel/core@babel/plugin-proposal-async-generator-functions@babel/plugin-proposal-class-properties@babel/plugin-proposal-decorators@babel/plugin-proposal-object-rest-spread@babel/plugin-proposal-private-methods@babel/plugin-syntax-dynamic-import@babel/plugin-transform-async-to-generator@babel/plugin-transform-exponentiation-operator@babel/plugin-transform-for-of@babel/plugin-transform-runtime@babel/plugin-transform-typescript@babel/preset-env@babel/preset-flow@babel/preset-react@babel/runtime@rollup/plugin-alias@rollup/plugin-commonjs@rollup/plugin-inject@rollup/plugin-node-resolve@types/async-exit-hook@types/babel__code-frame@types/babel__core@types/babel__helper-plugin-utils@types/callsite@types/chai@types/chalk@types/coffeescript@types/debug@types/dedent@types/diff@types/graceful-fs@types/is-glob@types/lodash@types/mime-db@types/mustache@types/nanoid@types/parse5@types/pngjs@types/semver@types/source-map-support@types/strip-bom@types/tmpasync-exit-hookbabel-loaderbabel-plugin-module-resolverbabel-plugin-syntax-trailing-function-commasbowsercallsitecallsite-recordchaichalkchrome-remote-interfacecoffeescriptcommanderdebugdedentdevice-specsdevtools-protocoldiffemitteryendpoint-utilseslint-plugin-hammerheadgraceful-fsgulp-clonegulp-datagulp-ll-nextgulp-mustachegulp-renamegulp-stepgulp-uglifyhammerheadhumanize-durationimport-lazyis-ciis-dockerlodashmake-dirmerge-streammimemime-dbmomentmoment-duration-format-commonjsnanoidparse5playwright-coreplaywright-core-cherrypngjspromisify-eventqrcode-terminalread-file-relativereplicatorresolve-cwdrollup-plugin-typescript2sanitize-filenamesemversource-map-supportstrip-bomtestcafetestcafe-browser-toolstestcafe-hammerheadtestcafe-legacy-apitime-limit-promisetmptree-killunquotewebpack
1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago