Hi Amit,
First, you need to consider why you need to compare the rendered HTML in
the first place. While writing unit tests we don't compare the rendered
output most of the time, rather we check the context variables. This is
because we don't need to test the render engine of the template language
Can you share few examples of valid and invalid cases. ?
On Sat, Mar 14, 2015 at 1:01 PM, Amit Sethi
wrote:
> Hi All , I plan to port my html templates for mail to a new templating
> engine. So i am setting up some unit tests for that. However I am not
> sure how do i compare two html strings fo