Skip to content

Jacoco Rule violated for package .. instructions covered ratio is ... but expected minimum is ... #756

@vorburger

Description

@vorburger

As of rev. 40480f4e784f076be787c0c3213918e88ffc4296, running mvn clean test causes:

[INFO] --- jacoco:0.8.12:check (report) @ google-genai ---
[INFO] Loading execution data file /home/vorburger/git/github.com/googleapis/java-genai/target/jacoco.exec
[INFO] Analyzed bundle 'google-genai' with 910 classes
[WARNING] Rule violated for package com.google.genai.types: instructions covered ratio is 0.14, but expected minimum is 0.40
[WARNING] Rule violated for package com.google.genai: instructions covered ratio is 0.31, but expected minimum is 0.70
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.128 s
[INFO] Finished at: 2026-01-03T19:52:23+01:00
[INFO] ------------------------------------------------------------------------

Perhaps those expected minimum should be lowered, until more test coverage is added?

Would you welcome a PR adjusting this?

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions