FreeCAD-macros icon indicating copy to clipboard operation
FreeCAD-macros copied to clipboard

Create tests for each macro in order to know if it is still functioning correctly

Open luzpaz opened this issue 1 year ago • 1 comments

Maybe we need to consider having tests for each and every macro that can be run to test the integrity of the macro code between version updates?

@galou thoughts ?

luzpaz avatar Oct 24 '24 13:10 luzpaz

A good idea, for sure but developing the framework for this is out of my capacities right now.

galou avatar Nov 25 '24 17:11 galou

@chennes maybe something for the FPA ?

luzpaz avatar May 07 '25 12:05 luzpaz

One approach is to publish a list of public APIs and provide versioning for them. A package can declare the API versions it is requesting and when they are no longer supported they may be identified as deprecated or incompatible without the need for executing tests.

As the APIs are already defined through the custom binding generator, it may be a relatively straightforward extension to the existing descriptions.

This however does not address the functional regressions that are not associated with API changes, for which tests may be useful, but does provide a mechanism by which FreeCAD can modernize and update the APIs with breaking changes in a controlled fashion.

oursland avatar May 07 '25 15:05 oursland

cc @chennes @yorikvanhavre

luzpaz avatar Aug 09 '25 18:08 luzpaz