Skip to content

bischoffdev/framework-plugins-spi

Repository files navigation

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 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.

About

The example code for the "Extending a Java test framework using SPI" presentation

Topics

Resources

Stars

Watchers

Forks

Languages