Trade Federation 中的全局过滤器
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
全局过滤器用于为 Tradefed 提供测试过滤器,这些过滤器会自动应用于调用,您无需担心测试是否支持相应过滤器。
如果配置不支持过滤,则相应过滤器不工作,但有一项好处,那就是不会像 Tradefed 中的通常情况那样抛出配置异常。这样,即使某项服务对 Tradefed 知之甚少,也能以通用方式轻松地生成和提供过滤器标志。
语法
--global-filters:include-filter [abi] module-name [test-class][#method-name]
--global-filters:exclude-filter [abi] module-name [test-class][#method-name]
其中,module-name 是唯一必须提供的部分。
例如:
- --global-filter:include-filter moduleA:将仅运行该模块
- --global-filters:include-filter moduleA class#method:将仅运行匹配的方法
如果需要更多过滤器,可以重复此选项。排除项的优先级高于包含项。
实现
源代码
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-03。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-03。"],[],[]]