23 lines
No EOL
1.3 KiB
Markdown
23 lines
No EOL
1.3 KiB
Markdown
---
|
|
sidebar_label: Testing
|
|
category_slug: testing
|
|
post_title: Testing
|
|
---
|
|
|
|
# 测试
|
|
|
|
在向 WooCommerce 核心代码贡献时,正确设置测试环境和撰写测试用例是我们的开发流程中至关重要的部分。 以下链接也包含在我们的 [贡献指南](https://github.com/woocommerce/woocommerce/blob/trunk/.github/CONTRIBUTING.md) 中。
|
|
|
|
如果您对测试有任何问题,请通过我们的公开渠道联系开发社区([开发者博客](https://developer.woocommerce.com/blog/)、[GitHub 讨论](https://github.com/woocommerce/woocommerce/discussions) 或 [社区 Slack](https://woocommerce.com/community-slack/))。
|
|
|
|
## 单元测试
|
|
|
|
[端到端测试](https://github.com/woocommerce/woocommerce/tree/trunk/plugins/woocommerce/tests/e2e-pw) 由 `Playwright` 提供支持。 测试站点使用 `wp-env` 启动([推荐](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/))。
|
|
|
|
## API 测试
|
|
|
|
[API 测试](https://github.com/woocommerce/woocommerce/tree/trunk/plugins/woocommerce/tests/e2e-pw/tests/api-tests) 基于 `Playwright` 和 `wp-env`。
|
|
|
|
## 测试招募
|
|
|
|
请关注我们的开发者博客上的测试招募信息,并务必阅读我们的 Beta 测试说明,以帮助我们构建新的功能和改进。 |