@codeceptjs/examples

中文文档
1.2.4发布于 2024/03/26ISCCommonJS近 30 天下载 2.6万

This repo contains tests for TodoMVC application. Tests can be executed via different helpers.

原始使用文档
文档目录8 节
  1. Playwright
  2. Puppeteer
  3. WebdriverIO
  4. TestCafe
  5. Headless Mode
  6. Parallel Execution
  7. Credits
  8. LICENSE

This repo contains tests for TodoMVC application. Tests can be executed via different helpers.

Installation

This is a playground for your first steps in testing, so instead of installing it from NPM it is recommended to clone it from repo instead and then install the dependencies:

git clone [email protected]:codecept-js/examples.git codeceptjs-examples && cd codeceptjs-examples && npm i

This will install CodeceptJS with Puppeteer, WebdriverIO & TestCafe packages.

Running Tests

The default helper is Playwright.

Playwright

Use codecept.conf.js to run tests with Playwright:

npx codeceptjs run --steps

Puppeteer

Use codecept.puppeteer.conf.js to run tests with Puppeteer:

npx codeceptjs run --steps -c codecept.puppeteer.conf.js 

WebdriverIO

Use codecept.webdriver.conf.js to run tests with WebdriverIO in Chrome:

npx codeceptjs run -c codecept.webdriver.conf.js --steps 

TestCafe

Use codecept.testcafe.conf.js to run tests with TestCafe in Chrome:

npx codeceptjs run -c codecept.testcafe.conf.js --steps 

Headless Mode

Run tests in headless mode:

HEADLESS=true npx codeceptjs run --steps

Parallel Execution

Run tests in parallel with 3 workers:

npx codeceptjs run-workers 3

Credits

Created as part of codepress by Stefan Huber. Maintained by CodeceptJS Team.

LICENSE

MIT

版本与发布记录

@codeceptjs/examples 共发布 8 个版本,首次发布于 2019/11/29;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.2.4latest2024/03/262 年前
1.2.32024/02/092 年前
1.2.22024/02/092 年前
1.2.12020/05/086 年前
1.1.22019/12/116 年前
1.1.12019/12/116 年前

关于 @codeceptjs/examples 的常见问题

@codeceptjs/examples 是什么?

This repo contains tests for TodoMVC application. Tests can be executed via different helpers.

如何安装 @codeceptjs/examples?

在项目目录运行 npm install @codeceptjs/examples,或使用 pnpm add / yarn add / bun add。

@codeceptjs/examples 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/codeceptjs__examples 是否存在。

@codeceptjs/examples 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@codeceptjs/examples 可以商用吗?

@codeceptjs/examples 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@codeceptjs/examples 的下载量有多少?

根据 npm 官方下载统计,@codeceptjs/examples 在 2026/10/10 – 2026/11/08 这 30 天内被下载 25,891 次,日均约 863 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@codeceptjs/examples 还在维护吗?

最新版本 1.2.4 发布于 2024/03/26(2 年前);至今共发布 8 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/11/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。