Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local version of jacoco to avoid issues with branch coverage and Jetpack Compose #54

Merged
merged 1 commit into from Mar 24, 2023

Conversation

brygotti
Copy link
Contributor

@brygotti brygotti commented Mar 23, 2023

This PR adds a local maven repository to the project, in the libs directory. It contains a custom version of Jacoco that fixes issues with Jetpack Compose (very low branch coverage due to "invisible" branches being detected in Composables). This Jacoco version was built locally from PR jacoco/jacoco#1259 , and the project is configured to use it instead of the default Jacoco version from the global maven repository.

Note that a first attempt to do this was made in the now deleted branch jacoco, but due to some weird issue with a commit, Cirrus CI could no longer clone this branch. Cirrus CI seems to be using the library go-git, which has an obscure bug which sometimes prevent cloning from running (go-git/go-git#495). Because of this issue, it was decided that it would be simpler to just recreate another branch and do a single clean commit, which seems to have fixed the issue with go-git.

Copy link
Contributor

@Luca-Engel Luca-Engel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job with this maven repository!

This will make it easier to get a sense of our branch coverage in the future and allow us to more quickly find out what parts of our code still need more testing.

@Luca-Engel Luca-Engel merged commit dbd3998 into main Mar 24, 2023
1 check passed
@brygotti brygotti deleted the jacoco-2 branch March 25, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants