Apex でトリガーのテストにて、テストを実行した結果に表示される「合計コードカバー率」と、「トリガーコードカバー率」の違いについて教えてください。
実行環境に移行するには「トリガーコードカバー率」も 75% を超える必要があるのでしょうか。
運用環境のデプロイを実施するための条件は以下のとおりです。
・運用環境における全テストの合計カバー率が 75% 以上である。
・各 Apex トリガーの単体テストカバー率が 1 %以上である。
※
75% 以上のコードカバー率は、運用組織全体で評価されます。
例えば 1 つの Apex クラスに、テストが存在しない (カバー率 0%) 場合についても、全体で 75% 以上のカバー率があればデプロイできます。
しかしながら、Apex トリガーについては、最低 1% のカバー率がないと、どんな場合もデプロイに失敗します。
000384442

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.