arcus-azure/arcus.testing

Investigate in moving output compare and XSLT into assert library

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
Currently, the output compare and XSLT is split into two projects, but are always working together.

Describe the solution you'd like
Define an assertion library that does the following:

  • compare XML contents
  • compare JSON contents
  • compare CSV contents
  • transform XML-XML & XML-JSON w/ XSLT transformation

🚩 The current functionality supports the ability to ignore certain XML/JSON nodes.

Additional context
https://github.com/Codit/testing-framework/tree/main/src/Codit.Testing.OutputComparison/Helper

@ClementVaillantCodit , might need to ping-pong with you some to determine what is needed here. As far as I can see, the original Testing Framework had the ability to compare XML/JSON documents and ignore certain nodes. https://github.com/fluentassertions already provides the equality for XML/JSON, but does not allow for ignore of nodes. Another problem, is that the maintainence of fluent assertions is already somtimes two years old and is not .NET 8 supported, currently.

I investigated this a bit, and we could implement a rudimentirary equality check ourselves and provide the options to ignore those nodes; but first I wanted to make sure that this feature is a required one for us, and a requested one. If not, then we might not include it here.

Happy to talk about this in a separate call, if need be.