https://github.com/bischoffdev/framework-plugins-spi
The example code for the "Extending a Java test framework using SPI" presentation
https://github.com/bischoffdev/framework-plugins-spi
java plugin-system spi
Last synced: 9 days ago
JSON representation
The example code for the "Extending a Java test framework using SPI" presentation
- Host: GitHub
- URL: https://github.com/bischoffdev/framework-plugins-spi
- Owner: bischoffdev
- Created: 2025-03-25T12:49:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-27T12:46:38.000Z (9 months ago)
- Last Synced: 2026-05-22T14:43:50.768Z (2 months ago)
- Topics: java, plugin-system, spi
- Language: Java
- Homepage: https://www.softwaretester.blog
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extending a Java test framework using SPI
This demonstrates a multi-module Maven setup of a core framework and plugins.
## Modules
| Module | Description |
|-------------------|-----------------------------------------------------------------------------------------------|
| example | A test project using the framework and both plugins. |
| plugin1 | A plugin for the core framework that reacts to OnTestSuiteStarted. |
| plugin2 | Another plugin for the core framework that reacts to OnTestSuiteStarted and OnTestSuiteEnded. |
| plugin-interfaces | The project containing only the plugin interfaces. |
| test-framework | The core test framework |
## Running the example
The [example](example) directory contains a test project using the framework and both plugins, simulating a test suite
run.
To run the example, execute the following commands in the root directory:
```
./mvnw clean install
cd example
./../mvnw exec:java -Dexec.mainClass=com.spidemo.example.Example
```
Alternatively, you can run the example's main method from your IDE.