Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Sep 22, 2023
1 parent cff9cbe commit f44cf86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/testing/automated-testing/phpunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,19 +658,19 @@ There are three primary ways to contribute:
**Write tests for a reported bug.** A great way to contribute is to write tests that demonstrate an existing bug report. The core developers are reluctant to consider patches for many sensitive areas in core without test coverage. Well-written tests can help confirm that a patch fixes a problem without side effects, and can prevent any regressions from occurring in the future. When tests are particularly needed or desired for a ticket to proceed, they receive the [needs-unit-tests](https://core.trac.wordpress.org/query?keywords=~needs-unit-tests) workflow keyword. You can submit tests for existing tickets directly on the WordPress core Trac. Bonus points for submitting a bug report with a test case included.
-->

**報告されたバグのテストを作成する。** 貢献するすばらしい方法は、既存のバグ報告を実証するテストを作成することです。コア開発者は、テストカバレッジのないコアの多くの繊細な部分のパッチを検討することに消極的です。適切に作成されたテストは、パッチが副作用なしに問題を修正することを確認するのに役立ち、将来的にリグレッションが発生することを防ぐことができます。チケットを進めるためにテストが特に必要であったり望ましい場合は、[needs-unit-tests](https://core.trac.wordpress.org/query?keywords=~needs-unit-tests) ワークフローキーワードを受け取ります。既存のチケットのテストは WordPress コアの Trac で直接提出できます。テストケースを含むバグレポートを提出するとよりよいでしょう。
**報告されたバグのテストを作成する。**貢献するすばらしい方法は、既存のバグ報告を実証するテストを作成することです。コア開発者は、テストカバレッジのないコアの多くの繊細な部分のパッチを検討することに消極的です。適切に作成されたテストは、パッチが副作用なしに問題を修正することを確認するのに役立ち、将来的にリグレッションが発生することを防ぐことができます。チケットを進めるためにテストが特に必要であったり望ましい場合は、[needs-unit-tests](https://core.trac.wordpress.org/query?keywords=~needs-unit-tests) ワークフローキーワードを受け取ります。既存のチケットのテストは WordPress コアの Trac で直接提出できます。テストケースを含むバグレポートを提出するとよりよいでしょう。

<!--
**Write new tests to improve our code coverage.** Many areas of WordPress do not have adequate test coverage. Pick a function, class, or component and write tests for it. You can submit these tests on [the WordPress Trac](https://core.trac.wordpress.org/).
-->

**コードカバレッジを向上させるために新しいテストを作成する。** WordPress の多くの領域で、十分なテストカバレッジを持っていません。関数、クラス、コンポーネントを選んで、そのテストを作成してください。これらのテストは [WordPress Trac](https://core.trac.wordpress.org/) で提出できます。
**コードカバレッジを向上させるために新しいテストを作成する。**WordPress の多くの領域で、十分なテストカバレッジを持っていません。関数、クラス、コンポーネントを選んで、そのテストを作成してください。これらのテストは [WordPress Trac](https://core.trac.wordpress.org/) で提出できます。

<!--
**Fix or improve our existing test cases.** There are many opportunities for improvement in the existing tests. Some of them are ancient and others are slow or fragile. Some do not tests well in multisite or under certain conditions. Some individual tests try to test too much, and [could be improved by using](https://docs.phpunit.de/en/9.6/writing-tests-for-phpunit.html) data providers, dependencies, and more narrow assertions.
-->

**既存のテストケースを修正または改善する。** 既存のテストには改善の余地がたくさんあります。古いものもあれば、速度が遅い、または壊れやすいものもあります。マルチサイトや特定の条件下でうまくテストできてないものもあります。一部の個別のテストより多くのことをテストしようとしており、データプロバイダ、依存関係、より限定的なアサーションを[使用することで改善できる可能性があります](https://docs.phpunit.de/en/9.6/writing-tests-for-phpunit.html)
**既存のテストケースを修正または改善する。**既存のテストには改善の余地がたくさんあります。古いものもあれば、速度が遅い、または壊れやすいものもあります。マルチサイトや特定の条件下でうまくテストできてないものもあります。一部の個別のテストより多くのことをテストしようとしており、データプロバイダ、依存関係、より限定的なアサーションを[使用することで改善できる可能性があります](https://docs.phpunit.de/en/9.6/writing-tests-for-phpunit.html)

<!--
## JavaScript Unit Tests
Expand Down

0 comments on commit f44cf86

Please sign in to comment.