I assume you've tried all of the variations in the documentation...?
If so, I expect that you may have a typo, or something like that. Can you provide the code you're using with the exclude syntax that doesn't work, and the header of the source file for the class that is incorrectly being included?
Emma allows the use of filters at instrumentation phase to specify a set of files that need to be instrumented. In contrast you are trying to do this at report generation phase. The link given above describes how to define the instrumentation set.
发布评论
评论(2)
我假设您已经尝试了文档中的所有变体...?
如果是这样,我希望您可能有拼写错误或类似的情况。 您能否提供您正在使用的代码,其中排除语法不起作用,以及错误包含的类的源文件头?
I assume you've tried all of the variations in the documentation...?
If so, I expect that you may have a typo, or something like that. Can you provide the code you're using with the exclude syntax that doesn't work, and the header of the source file for the class that is incorrectly being included?
Emma 允许在检测阶段使用过滤器来指定一组需要检测的文件。 相反,您尝试在报告生成阶段执行此操作。 上面给出的链接描述了如何定义检测集。
我使用过这样的过滤器:
您还可以使用嵌套的;下的元素
Emma allows the use of filters at instrumentation phase to specify a set of files that need to be instrumented. In contrast you are trying to do this at report generation phase. The link given above describes how to define the instrumentation set.
I've used filters like this:
You can also use nested <filter> elements under <instr>