PHPUnit is the official testing framework chosen by the coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. team to test our PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher code. Setup Step 1: Check out the test repository. The WordPress tests live in the core development rep
When you want to start introducing functionality to the plugins you're working on, it’s good practice to ensure the existing logic isn’t broken with proper testing. Learn how run unit tests for WordPress plugins in today's post. When you’re working on plugins and you start introducing new functionality, it’s good practice to ensure the existing logic isn’t broken. Without proper testing, the chanc
WordPressのコマンドラインツール WP-CLI には様々な機能がありますが、プラグイン開発者にとって特に便利な機能がいくつかあります。 その代表的な例が以下のコマンドで、このコマンドを既存のプラグイン名を指定して実行するとPHPUnitテスト用のサンプルコードが自動的に生成されます。 wp scaffold plugin-tests <plugin-name> また、以下のコマンドを実行すれば、PHPUnitテスト用のファイルが含まれたプラグインのひな形を自動的に生成してくれます。 wp scaffold plugin <plugin-name> 今回の記事では、このコマンドをつかって生成したプラグインのひな形を使ってテスト駆動開発に挑戦してみます。 テスト環境について 何度もユニットテストを繰り返すことを考えると、やはり簡単にリセットできることが望ましいと思います。 そこで今回は
昨日のVCCWを使ってWordPress環境をチームでまるごと共有するに引き続きぼっちアドベントカレンダー11日目の記事です。 今回の記事ではWordPressプラグインの開発に、Travis CIを使った継続的インテグレーション(Continuous Integration)を導入しようぜーという話です。 Travis CIを使うと何ができるようになるのか? WordPressのプラグイン開発にTravis CIを導入するとどんなメリットがあるんでしょう? まずはそこから紹介します。 GitHubにgit pushしたら自動的にphpunitが発火する。 プルリクが来た時も同じく自動的にphpunitが発火する。 複数のPHPバージョンを指定して、それぞれの環境でテストを行うことが可能。 複数のWordPressのバージョンを指定して、それぞれの環境でテストを行うことが可能。 マルチサイ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く