butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

Support persistent transformation context attributes

Open fabiocarvalho777 opened this issue 7 years ago • 0 comments

The use case

Metrics offer great details about the transformation. However, sometimes it is important to also have access to custom specific details, gathered during the transformation and stored as transformation context. This would help increase test accuracy, and also to provide better metrics.

How to achieve that

With that in mind, Butterfly should offer an option to "persist" transformation context attributes. Persistent transformation context attributes would be saved in the transformation result metrics object, making them available to tests and persisted to any storage set to persist transformation metrics.

API changes

Add method void persist(String attributeName) to TransformationTemplate.

fabiocarvalho777 avatar Feb 08 '19 19:02 fabiocarvalho777