Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add end-to-end (e2e) tests

未关闭
#607 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

已经有一个关联 PR 被合并了。

  • #751 来自 @felixarntz —— 已合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
testing

调研方向

首先检查 WP-CLI 入口点现有的 e2e 测试,然后选择使用 Playwright 搭配 wp-env 或 Playground 的设置来处理管理后台 Ajax 流程。添加一个虚拟插件和一个 addon,并覆盖所有检查、仅运行时检查,以及来自具有已验证输出的 addon 的检查。

由索引模型根据 Issue 内容生成。

描述

[Type] Enhancement

We already have some e2e tests for the WP-CLI entry point, but not for the admin entry point. Having e2e coverage for the Ajax flow would increase confidence in our setup.

Should be simple to set up, with 1 dummy plugin for testing and 1 addon installed.

Can use Playwright and wp-env or maybe even Playground

Scenarios to test:

  • Running all checks and their output
  • Running only runtime checks
  • Running checks from an add-on
  • Maybe more?
主要语言
PHP
星标
365
派生
129
平均合并
1 天 9 小时
30 天内合并 PR
22

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

WordPress/plugin-check 的其他 Issue

查看 WordPress/plugin-check 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。