Commit ea0d137
Changjian Wang
Exclude generated Sample integration tests from JaCoCo coverage
The auto-generated Sample*Test.java files are integration tests that require
real Azure credentials to run. In CI/CD pipelines without credentials, these
tests are skipped, which causes JaCoCo coverage checks to fail (0% coverage).
Solution: Exclude the Sample*Test.class files from JaCoCo coverage reporting,
since they are environment-specific integration tests and cannot be accurately
measured in all CI/CD environments. This allows the coverage checks to pass
while still maintaining proper coverage of the actual library code.1 parent e5d7a9a commit ea0d137
File tree
1 file changed
+16
-0
lines changed- sdk/contentunderstanding/azure-ai-contentunderstanding
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
75 | 91 | | |
0 commit comments