wearefrank / ladybug

Enable users of your application to debug and test it
Apache License 2.0
13 stars 8 forks source link

Feature request: An intuitive way to define assertions on tests #206

Open MLenterman opened 8 months ago

MLenterman commented 8 months ago

Currently it is only possible to use an XSLT transformation to filter the report to selectively compare only parts of the report. Mainly this can only be used to check for equality between the saved report and the report of the rerun, although it is technically possible to add conditions in XSLT to create some sort of difference in the comparison to fail the test.

It would be great to have a way to define assertions similar to popular testing platforms like Postman and SoapUI. Ideally also with the flexibility to select the left-hand and right-hand side of the comparison. For example; compare a value from the input message with a value from the output of an arbitrary pipe.

Examples assertions that would be useful: