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

7446: Add Maven profile for enabling test coverage #336

Closed
wants to merge 1 commit into from

Conversation

aptmac
Copy link
Member

@aptmac aptmac commented Nov 22, 2021

This PR addresses JMC-7446 [0], in which it would be nice to have a Maven profile for enabling test coverage.

At the moment, test coverage is enabled by default with no way of disabling it. This PR adds a Maven profile (in a similar vein to how uitests are run) that allows coverage reports to be enabled or disabled as desired. This profile is included in both the core and application poms.

Usage: mvn clean install -P coverage, or mvn clean verify -P coverage -P uitests, etc.

[0] https://bugs.openjdk.java.net/browse/JMC-7446


Progress

  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JMC-7446: Add Maven profile for enabling test coverage

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jmc pull/336/head:pull/336
$ git checkout pull/336

Update a local copy of the PR:
$ git checkout pull/336
$ git pull https://git.openjdk.java.net/jmc pull/336/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 336

View PR using the GUI difftool:
$ git pr show -t 336

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jmc/pull/336.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 22, 2021

👋 Welcome back aptmac! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr label Nov 22, 2021
@mlbridge
Copy link

mlbridge bot commented Nov 22, 2021

Webrevs

@thegreystone thegreystone changed the title 7446: add Maven profile for enabling test coverage 7446: Add Maven profile for enabling test coverage Nov 25, 2021
@openjdk
Copy link

openjdk bot commented Nov 25, 2021

@aptmac This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

7446: Add Maven profile for enabling test coverage

Reviewed-by: hirt

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 2 new commits pushed to the master branch:

  • 24f4cb0: 5904: Merge org.openjdk.jmc.ui.celleditors with org.openjdk.jmc.rjmx.ui.celleditors
  • d218205: 7440: JMC fails on Apple M1

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready label Nov 25, 2021
@aptmac
Copy link
Member Author

aptmac commented Nov 25, 2021

/integrate

@openjdk
Copy link

openjdk bot commented Nov 25, 2021

Going to push as commit 35c8e0e.
Since your change was applied there have been 2 commits pushed to the master branch:

  • 24f4cb0: 5904: Merge org.openjdk.jmc.ui.celleditors with org.openjdk.jmc.rjmx.ui.celleditors
  • d218205: 7440: JMC fails on Apple M1

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Nov 25, 2021
@openjdk openjdk bot added integrated and removed ready rfr labels Nov 25, 2021
@openjdk
Copy link

openjdk bot commented Nov 25, 2021

@aptmac Pushed as commit 35c8e0e.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@aptmac aptmac deleted the coverage branch December 6, 2021 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants