https://github.com/eclipse-osgi-technology/osgi-test
Testing support for OSGi. Includes JUnit 4 and JUnit 5 support and AssertJ support.
https://github.com/eclipse-osgi-technology/osgi-test
assertj assertj-support junit junit4 junit5 osgi osgi-testing test testing
Last synced: 10 months ago
JSON representation
Testing support for OSGi. Includes JUnit 4 and JUnit 5 support and AssertJ support.
- Host: GitHub
- URL: https://github.com/eclipse-osgi-technology/osgi-test
- Owner: eclipse-osgi-technology
- License: apache-2.0
- Created: 2019-10-28T18:14:40.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T00:52:56.000Z (10 months ago)
- Last Synced: 2025-04-15T09:04:14.579Z (10 months ago)
- Topics: assertj, assertj-support, junit, junit4, junit5, osgi, osgi-testing, test, testing
- Language: Java
- Homepage: https://osgi.github.io/osgi-test/
- Size: 2.18 MB
- Stars: 40
- Watchers: 10
- Forks: 17
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# OSGi Testing Support
Testing support for OSGi
## Purpose
This project provides a set of bundles which contain useful and helpful classes for testing of OSGi API.
### [org.osgi.test.common][1]
This artifact includes common utility classes which are useful in all testing scenarios.
### org.osgi.test.assertj.*
These artifacts provides support classes for OSGi testing with [AssertJ](https://github.com/joel-costigliola/assertj-core) including custom assertions. Currently there are artifacts for [org.osgi.framework][2], [org.osgi.util.promise][3], and [org.osgi.service.log][7].
### [org.osgi.test.junit4][4]
This artifact provides support classes for OSGi testing with [JUnit 4](https://junit.org/junit4/) including JUnit 4 Rules.
### [org.osgi.test.junit5][5]
This artifact provides support classes for OSGi testing with [JUnit 5](https://junit.org/junit5/) including JUnit 5 Extensions.
### [org.osgi.test.junit5.cm][6]
This artifact provides support classes for OSGi testing with ConfigurationAdmin and [JUnit 5](https://junit.org/junit5/) including JUnit 5 Extensions.
### [org.osgi.test.junit5.listeners.log.osgi][8]
This artifact provides a [JUnit 5](https://junit.org/junit5/) `TestExecutionListener` that logs test output via the OSGi Log Service.
## Building
We use Maven to build and the repo includes `mvnw`.
You can use your system `mvn` but we require a recent version.
- `./mvnw clean install` - Assembles and tests the project
[](https://github.com/osgi/osgi-test/actions?query=workflow%3A%22CI%20Build%22)
## Code Quality
We use [CodeQL](https://github.com/osgi/osgi-test/blob/main/.github/workflows/codeql-analysis.yml) for continuous security analysis.
## Repository
Release versions of osgi-test bundles are available on Maven Central under the `org.osgi` group ID. You can find them [here](https://search.maven.org/search?q=a:org.osgi.test.*).
For those who want the bleeding edge, snapshot artifacts are published to the Sonatype OSS repository:
[https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/)
## Future work
See the [open issues](https://github.com/osgi/osgi-test/issues) for the list of outstanding TODOs.
## License
This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0 which is available at .
## Contributing
Want to hack? There are [instructions](CONTRIBUTING.md) to get you
started.
They are probably not perfect, please let us know if anything feels
wrong or incomplete.
## Acknowledgments
This project uses the [Bnd Maven Plugins](https://github.com/bndtools/bnd) to build.
[1]: org.osgi.test.common/README.md
[2]: org.osgi.test.assertj.framework/README.md
[3]: org.osgi.test.assertj.promise/README.md
[4]: org.osgi.test.junit4/README.md
[5]: org.osgi.test.junit5/README.md
[6]: org.osgi.test.junit5.cm/README.md
[7]: org.osgi.test.assertj.log/README.md
[8]: org.osgi.test.junit5.listeners.log.osgi/README.md