JasperFx / alba

Easy integration testing for ASP.NET Core applications
https://jasperfx.github.io/alba
Apache License 2.0
406 stars 39 forks source link

Proposal: BodyTextAssertion should also contain the actual response body when failing #171

Open chrisbbe opened 2 months ago

chrisbbe commented 2 months ago

Hi,

Thanks for the excellent framework. I'm really keen to enhance the error message in 'BodyTextAssertion' and include the actual response payload.

I´ll provide a PR.

Hawxy commented 2 months ago

All assertions should already include the body per https://github.com/JasperFx/alba/blob/master/src/Alba/ScenarioAssertionException.cs#L57