tcunit / TcUnit-Runner

Program that makes it possible to automate runs of TcUnit unit tests
Other
34 stars 17 forks source link

Proposal: Adding Plugin / hook system feature #51

Closed densogiaichned closed 6 months ago

densogiaichned commented 9 months ago

This PR adds plugin/hook system to TcUnit-Runner, and The plugins are loaded via Managed Extensibility Framework (MEF), see https://learn.microsoft.com/en-us/dotnet/framework/mef/

It also introduces a kind of hook-system, where hooks are executed during execution of TcUnit-Runner. These hooks are for example:

A plugin must implement these hooks, e.g. IAfterSolutionLoadedHook. Additionally, configuration of these hooks is done via a dotfile named .TcUnitRunner.

Since plugins are optional and only available on runtime, they could help to mitigate issues regarding newer TwinCAT versions/funktions, like

24 or #25.

I've marked this PR as 'draft', to discuss if this proposal is useful, or introduces other unforeseen issues/problems.

Thanks in advance!

sagatowski commented 6 months ago

This project is archived. Replacement for it is in the works.