poststatus/wptest
Composer 安装命令:
composer require poststatus/wptest
包简介
WP Test - The Best Tests For WordPress.
README 文档
README
Description
WP Test is a fantastically exhaustive set of test data to measure the integrity of your plugins and themes.
This test data comes packed with lessons learned from over four years of theme and plugin support, and baffling corner cases, to create a potent cocktail of simulated, quirky user content.
WP Test still offers the following benefits over the WordPress Unit Test data.
Transparency
Without question, the WordPress Theme Unit Test Codex data is good place to start, but it can lag in updates. And when the test data did update, there was no indication of what had changed within the data.
WP Test comes with release notes indicating what has been added, removed, or changed within the data for each release.
Contribution & Community
Contributing to the WordPress Codex is fairly straightforward, but contributing to the test data is not.
By using GitHub to host the WP Test data, anyone is free to contribute to the project in a multitude of ways.
Life
Testing can be tedious and boring, but there is no need for the test data itself to be mundane. Lorem ipsum is effective and it does simulate text flow fairly well, but it’s boring as hell.
Content should come with life and character. There are no testing benefit to this, but it does inject personality and fun into traditionally dry content. This alone is a good enough reason for it to exist in this way.
Guided Help
Not only is the WP Test data content funny, it’s smart and helpful.
Whenever possible, the test data references the WordPress Codex for best practices and function references.
These kind of integration into the test data will only increase over time and lessen the barrier to resolving the issues the test data uncovers.
Installation
WP Test can be installed one of two ways, either via the WordPress Admin or via WP-CLI.
Installation via WordPress Admin
- Download the data from the repository.
- Unzip the download on your computer.
- Launch your WordPress site.
- Navigate to
Tools > Importin the WordPress admin. - Click on
WordPressand install the WordPress Importer plugin, if it's not already installed, and clickActivate Plugin & Run Importerafter the installation completes. - Choose the
wptest.xmlfile you extracted from the zip in Step 2 and clickUpload file and import. - On the next screen, do not change or reassign anything about the authors and make sure you check the
Download and import file attachmentsbox before you clickSubmit. - Let the import process run until complete. Do not close the browser tab / window or navigate away from page while importing. You should see an
All done. Have fun!message when the import is complete. - Happy testing! See Usage section for more details.
Installation via WP-CLI
- Make sure you have WP-CLI installed, if it's not already installed.
- Via the command line, execute the
wptest-cli-install.shscript. - Follow the prompts to install the WP Test data.
- Happy testing! See Usage section for more details.
Usage
Once the WP Test data is installed, using WP Test is as simple as navigating to posts, pages, assigning menus, etc. and looking for layout, overflow, alignment, and other style and structure issues.
The test data is self documenting, as much as possible, to help you fix your issues.
Contributing
The word "comprehensive" was purposely left off the project description. It's not. There will always be something new squarely scenario to test. That's where you come in.
Let us know of a test we're not covering by contacting us or by adding an issue. We'd love to incorporate it into the suite and help other developers squash the issue.
For more information on how to directly contribute to the project, please read the CONTRIBUTING.md file.
Let’s make WordPress testing easier and resilient together!
Release Notes
What has been added, removed, or modified in each release is detailed in the releases section of the project on GitHub.
License
WP Test is licensed under the GPL.
A copy of the LICENSE is included in the root of the project.
Credits
WP Test was created in March of 2013 by Michael Novotny and has since included a number of great contributions.
The foundation of these tests are derived from WordPress’ Theme Unit Test Codex data. And in the beauty of open source, many WP Test tests have been integrated back into the "official" WordPress Unit Test data, but not everything...and not what we consider to be the most useful test / corner cases.
poststatus/wptest 适用场景与选型建议
poststatus/wptest 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 376 次下载、GitHub Stars 达 938, 最近一次更新时间为 2018 年 01 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「data」 「import」 「wordpress」 「export」 「tests」 「unit tests」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 poststatus/wptest 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 poststatus/wptest 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 poststatus/wptest 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shoot aims to make providing data to your templates more manageable
Adds the EDTF data type to Wikibase
A simple library that allows transform any kind of data to native php data or whatever
Parse use statements for a reflection object
Tool for copying data from a production database to a dev database. Also useful for making backups of production databases.
A fork of konnco/filament-import with support of Laravel 11 since the default importer of Filament 3 is nonsense for basic use case.
统计信息
- 总下载量: 376
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 939
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-01-27
