{"id":20841520,"url":"https://github.com/wavesoftware/java-jmh-junit-utilities","last_synced_at":"2026-04-20T08:31:39.141Z","repository":{"id":52541977,"uuid":"55134454","full_name":"wavesoftware/java-jmh-junit-utilities","owner":"wavesoftware","description":"A JMH utilities to be used in JUnit tests","archived":false,"fork":false,"pushed_at":"2021-04-26T17:59:21.000Z","size":42,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-12-25T19:54:54.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wavesoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-31T08:41:25.000Z","updated_at":"2019-07-05T00:00:52.000Z","dependencies_parsed_at":"2022-08-30T01:01:29.161Z","dependency_job_id":null,"html_url":"https://github.com/wavesoftware/java-jmh-junit-utilities","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wavesoftware/java-jmh-junit-utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesoftware%2Fjava-jmh-junit-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesoftware%2Fjava-jmh-junit-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesoftware%2Fjava-jmh-junit-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesoftware%2Fjava-jmh-junit-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavesoftware","download_url":"https://codeload.github.com/wavesoftware/java-jmh-junit-utilities/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavesoftware%2Fjava-jmh-junit-utilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32039943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T01:20:31.020Z","updated_at":"2026-04-20T08:31:38.974Z","avatar_url":"https://github.com/wavesoftware.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JMH Utils for JUnit\nThis micro library holds a set of JUnit utilities for usage with JMH testing framework.\n\n[![Build Status](https://travis-ci.org/wavesoftware/java-jmh-junit-utilities.svg?branch=master)](https://travis-ci.org/wavesoftware/java-jmh-junit-utilities) [![Coverage Status](https://coveralls.io/repos/wavesoftware/java-jmh-junit-utilities/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/wavesoftware/java-jmh-junit-utilities?branch=master) [![SonarQube Tech Debt](https://img.shields.io/sonar/http/sonar-ro.wavesoftware.pl/pl.wavesoftware:jmh-junit-utilities/tech_debt.svg)](http://sonar-ro.wavesoftware.pl/dashboard/index/3862) [![Maven Central](https://img.shields.io/maven-central/v/pl.wavesoftware/jmh-junit-utilities.svg)](https://search.maven.org/artifact/pl.wavesoftware/jmh-junit-utilities/)\n\n## General use\n\n### `JmhCleaner` extension\n\nJMH is kinda dirty. It leaves after himself a set of tests classes. They are placed in Maven generated sources directory and may cause a false positives in code analysis tools like SonarQube. `JmhCleaner` rule is designed to overcome that and remove any JMH generated classes.\n  \nUse it as a standard JUnit 5 extension. One needs to pass a test class in constructor.\n\nExample:\n\n```java\n@RegisterExtension\nstatic JmhCleaner cleaner = new JmhCleaner(MyClassTest.class);\n```\n\n### `JavaAgentSkip` extension\n\nJMH is, as any performance framework, sensitive to all intrusions like running java agents. Those are coverage tools (Jacoco), debuggers, profilers and so on. To overcome that one can use `JavaAgentSkip` rule to automatically skip test is JAva agent is present.\n\nExample:\n\n```java\n@RegisterExtension\nstatic JavaAgentSkip javaAgentSkip = JavaAgentSkip.ifPresent();\n```\n\n## Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003epl.wavesoftware\u003c/groupId\u003e\n    \u003cartifactId\u003ejmh-junit-utilities\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Contributing\n\nContributions are welcome!\n\nTo contribute, follow the standard [git flow](http://danielkummer.github.io/git-flow-cheatsheet/) of:\n\n1. Fork it\n1. Create your feature branch (`git checkout -b feature/my-new-feature`)\n1. Commit your changes (`git commit -am 'Add some feature'`)\n1. Push to the branch (`git push origin feature/my-new-feature`)\n1. Create new Pull Request\n\nEven if you can't contribute code, if you have an idea for an improvement please open an [issue](https://github.com/wavesoftware/java-jmh-junit-utilities/issues).\n\n## Requirements\n\n* JDK \u003e= 1.8\n\n### Releases\n \n- 2.0.0\n  - Support for JDK \u003e= 1.8\n  - Support for JUnit 5\n  - Dropped support for JUnit 4\n \n- 1.0.0\n  - Support for JDK \u003e= 1.6\n  - Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesoftware%2Fjava-jmh-junit-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavesoftware%2Fjava-jmh-junit-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavesoftware%2Fjava-jmh-junit-utilities/lists"}