JavaScript: QUnit

QUnit は JavaScript のユニットテストのフレームワークです。

インストール

1. インストールを設定する: このガイドに従って、ローカル環境へインストールします。
https://ja.wordpress.org/team/handbook/core/tutorials/installing-wordpress-locally/

2. SVN 経由で WordPress をインストールする: SVN か Git で WordPress をインストールします。
https://ja.wordpress.org/team/handbook/core/tutorials/installing-wordpress-locally/from-svn/

QUnit テストスイートを実行

WordPress をインストールし、設定したテスト環境から /tests/qunit/index.html に移動してください。

ローカルに設定したドメインが http://wp-test.dev であれば、http://wp-test.dev/tests/qunit/index.html が必要な URL です。

Web サーバーを立ち上げずに、ブラウザ上で直接テストを実行することもできます。チェックアウトしたリポジトリのファイルパスに /tests/qunit/index.html を追加してください。たとえば、file:///Users/musername/dev/develop.svn.wordpress.org/trunk/tests/qunit/index.html というようにします。

原文 / 日本語訳

s
検索
c
新規投稿を作成する
r
返信
e
編集
t
ページのトップへ
j
go to the next post or comment
k
go to the previous post or comment
o
コメントの表示を切替
esc
投稿やコメントの編集をキャンセル