定制 assertwell/wp-core-test-framework 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

assertwell/wp-core-test-framework

最新稳定版本:v0.3.0

Composer 安装命令:

composer require --dev assertwell/wp-core-test-framework

包简介

Streamline testing WordPress plugins and themes using the WordPress core test framework

README 文档

README

License: MIT Contributor Covenant

This package helps reduce duplication across WordPress plugins and themes by enabling common test scaffolding to be provided via Composer.

Installation

To install the WordPress core test framework into your plugin or theme, install this package as a Composer dependency:

$ composer require --dev assertwell/wp-core-test-framework

Usage

Replacing the default bin/install-wp-tests.sh file

When scaffolding a new WordPress plugin or theme via WP-CLI, the generator will create a shell script at bin/install-wp-tests.sh.

This file is meant to create an instance of the WordPress core development repository, which includes the WordPress core testing framework.

In many cases, this shell script is never modified, and is often the only file present in the bin/ directory. Rather than copying and pasting this file across a bunch of repositories, install-wp-tests.sh is provided as a vendor binary by this package.

To use it, find anywhere you're currently (or would be) referencing bin/install-wp-tests.sh and replace it with vendor/bin/install-wp-tests.sh.

# .travis.yml

  install:
      - composer install --prefer-dist --no-interaction
-     - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
+     - bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION

If your project already contains a bin/install-wp-tests.sh file, you may delete it from your repository.

统计信息

  • 总下载量: 69.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 1
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固