TestFailureEmailResultReporter

public class TestFailureEmailResultReporter
extends EmailResultReporter

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.EmailResultReporter
       ↳ com.android.tradefed.result.TestFailureEmailResultReporter


An EmailResultReporter that can also restrict notifications to just test failures.

Summary

Public constructors

TestFailureEmailResultReporter()

Default constructor

Protected constructors

TestFailureEmailResultReporter(IEmail mailer)

Create a TestFailureEmailResultReporter with a custom IEmail instance to use.

Protected methods

boolean shouldSendMessage()

Send a message if there was an invocation failure.

Public constructors

TestFailureEmailResultReporter

TestFailureEmailResultReporter ()

Default constructor

Protected constructors

TestFailureEmailResultReporter

TestFailureEmailResultReporter (IEmail mailer)

Create a TestFailureEmailResultReporter with a custom IEmail instance to use.

Exposed for unit testing.

Parameters
mailer IEmail: the IEmail instance to use.

Protected methods

shouldSendMessage

boolean shouldSendMessage ()

Send a message if there was an invocation failure.

Returns
boolean the return value of hasFailedTests().