「受け入れテスト」の版間の差分
提供:MoodleDocs
Mitsuhiro Yoshida (トーク | 投稿記録) 編集の要約なし |
Mitsuhiro Yoshida (トーク | 投稿記録) 編集の要約なし |
||
11行目: | 11行目: | ||
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. | ||
BehatでのテストはMoodleのユーザインターフェイスを通して動作するため、少し時間を要します。したがって、あなたのコードの細かい限界点をテストするために、おそらく[[PHPUnit]]も使用すべきでしょう。 | |||
[[Category:Behat]] | [[Category:Behat]] | ||
[[en:Development:Acceptance_testing]] | [[en:Development:Acceptance_testing]] |
2022年2月21日 (月) 15:04時点における版
作成中です - Mitsuhiro Yoshida (トーク)
Moodleは自動的にユーザインタフェースをテストするため、Behatと呼ばれるフレームワークを使用します。テストは各プラグインおよびMoodleコアのために書けます。
- To run the existing tests, read Running acceptance test. You really need to do this first.
- 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
- 既存のテストを実行するには受け入れテストを実行するをご覧ください。あなたが最初に本当にやる必要があるのはこれです。
- 新しいテストを書くには受け入れテストを書くをご覧ください。
- テストを書くときに使用できる新しいステップを定義するには新しい受け入れテストのステップ定義を書くをご覧ください。
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. BehatでのテストはMoodleのユーザインターフェイスを通して動作するため、少し時間を要します。したがって、あなたのコードの細かい限界点をテストするために、おそらくPHPUnitも使用すべきでしょう。