An open API service indexing awesome lists of open source software.

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

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.