「受け入れテスト」の版間の差分

提供:MoodleDocs
移動先:案内検索
編集の要約なし
編集の要約なし
1行目: 1行目:
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] ([[利用者・トーク:Mitsuhiro Yoshida|トーク]])
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] ([[利用者・トーク:Mitsuhiro Yoshida|トーク]])


Moodle uses a framework called Behat to automatically test the user-interface. Tests can be written for each plugin, and for Moodle core.
Moodleは自動的にユーザインタフェースをテストするため、Behatと呼ばれるフレームワークを使用します。テストは各プラグインおよびMoodleコアのために書けます。
Moodleは自動的にユーザインタフェースをテストするため、Behatと呼ばれるフレームワークを使用します。テストは各プラグインおよびMoodleコアのために書けます。


7行目: 6行目:
* To write new tests, read [[Writing acceptance tests]].
* To write new tests, read [[Writing acceptance tests]].
* To define new steps that can you used when writing tests, see [[Writing new acceptance test step definitions]]
* To define new steps that can you used when writing tests, see [[Writing new acceptance test step definitions]]
* 既存のテストを実行するには[[受け入れテストを実行する]]をご覧ください。あなたが最初に本当にやる必要があるのはこれです。
* 新しいテストを書くには[[受け入れテストを書く]]をご覧ください。
* テストを書くときに使用できる新しいステップを定義するには[[新しい受け入れテストのステップ定義を書く]]をご覧ください。


Because Behat tests work through the Moodle user interface, they are a bit slow. Therefore, you should probably also use [[PHPUnit]] to test the detailed edge cases in your code.
Because Behat tests work through the Moodle user interface, they are a bit slow. Therefore, you should probably also use [[PHPUnit]] to test the detailed edge cases in your code.

2022年2月20日 (日) 15:04時点における版

作成中です - Mitsuhiro Yoshida (トーク)

Moodleは自動的にユーザインタフェースをテストするため、Behatと呼ばれるフレームワークを使用します。テストは各プラグインおよびMoodleコアのために書けます。

Because Behat tests work through the Moodle user interface, they are a bit slow. Therefore, you should probably also use PHPUnit to test the detailed edge cases in your code.