UI を使用してすべてのテストまたは単一のテストを実行した場合に発生する Apex テストの失敗の数と、展開を実行した場合に発生する失敗の数との間に差異が生じることがあります。差異を比較すると、UI では「Connection Canceled (接続がキャンセルされました)」エラーが発生することで差異が生じていることを説明できますが、展開ではできないという結論に至りました。これはなぜでしょうか。
展開では固定テストの実行時間について上限チェックを行わないのに対し、UI を使用する場合は行います ([すべてのテストを実行] または個々のクラスに対するテストの実行)。展開の場合、この制限はもう少し緩やかです。UI と展開で生じるテスト失敗の差異が「Connection Canceled (接続がキャンセルされました)」エラーのみである場合、展開では意図的にこのハードチェックを行わないため、想定内の動作と見なされることがあります。
注意: 展開/検証シナリオ以外でメタデータ API を介してテストを実行した場合にも同じ動作が見られます。これもまた想定内の動作です。
000396102

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.