ITestAnnotationFilterReceiver

public interface ITestAnnotationFilterReceiver

com.android.tradefed.testtype.ITestAnnotationFilterReceiver


一种可根据注释过滤要运行的测试的运行程序。

当且仅当测试与一个或多个包含过滤器匹配且与任何排除过滤器都不匹配时,才会运行该测试。如果没有给出包含过滤器,那么应运行所有测试,只要它们与任何排除过滤器都不匹配。

摘要

公共方法

abstract void addAllExcludeAnnotation(Set<String> notAnnotations)

添加了 Set 注解,如果测试标记了该注解,则排除相应测试。

abstract void addAllIncludeAnnotation(Set<String> annotations)

添加一个注解 Set,如果测试标记了该注解,则包含该注解。

abstract void addExcludeAnnotation(String notAnnotation)

添加了一个注解,用于排除标记了该注解的测试。

abstract void addIncludeAnnotation(String annotation)

添加一个注解,如果测试标记了该注解,则包含该测试。

abstract void clearExcludeAnnotations()

删除当前跟踪的所有排除注释。

abstract void clearIncludeAnnotations()

删除当前跟踪的所有 include 注释。

abstract Set<String> getExcludeAnnotations()

返回要排除的注释的当前 Set

abstract Set<String> getIncludeAnnotations()

返回要包含的注释的当前 Set

公共方法

addAllExcludeAnnotation

public abstract void addAllExcludeAnnotation (Set<String> notAnnotations)

添加了 Set 注解,如果测试标记了该注解,则排除相应测试。

参数
notAnnotations Set

addAllIncludeAnnotation

public abstract void addAllIncludeAnnotation (Set<String> annotations)

添加一个注解 Set 列表,如果测试标记了这些注解,则包含这些测试。

参数
annotations Set

addExcludeAnnotation

public abstract void addExcludeAnnotation (String notAnnotation)

添加了一个注解,用于排除标记了该注解的测试。

参数
notAnnotation String

addIncludeAnnotation

public abstract void addIncludeAnnotation (String annotation)

添加了注解,用于指定如果测试标记了该注解,则包含该测试。

参数
annotation String

clearExcludeAnnotations

public abstract void clearExcludeAnnotations ()

删除当前跟踪的所有排除注释。

clearIncludeAnnotations

public abstract void clearIncludeAnnotations ()

删除当前跟踪的所有包含注释。

getExcludeAnnotations

public abstract Set<String> getExcludeAnnotations ()

返回当前要排除的注释的 Set

返回
Set<String>

getIncludeAnnotations

public abstract Set<String> getIncludeAnnotations ()

返回要包含的注释的当前 Set

返回
Set<String>