Opened 19 years ago

Last modified 18 years ago

#50 new enhancement

Automatically diff actual and expected output in deftest-html

Reported by: anonymous Owned by: Slava Akhmechet
Priority: low Milestone: 0.2
Component: weblocks Version: pre-0.1
Keywords: Cc:

Description

Currently when unit tests that are defined with deftest-html macro fail, it's very hard to tell the difference between actual and expected HTML, especially if the output is long. It's usually necessary to invoke ediff-buffers in Emacs (or some other diff utility).

Automatically diffing actual and expected output and presenting the diff as a result of a failed test would significantly ease debugging. This could be done with CL-HTML-DIFF or CL-DIFFLIB library.

Change History (4)

comment:1 by Slava Akhmechet, 19 years ago

Milestone: 0.10.2

Moving non-essential improvement items to 0.2 milestone.

comment:2 by Slava Akhmechet, 19 years ago

Suggested by Chaitanya:

Maybe the HTML strings should be converted to LHTML [1], and then we create an equality function like lhtml-equal-p to check for equality rather than simply equal?

  1. Franz's HTML parser -

http://opensource.franz.com/xmlutils/xmlutils-dist/phtml.htm

comment:3 by Slava Akhmechet, 19 years ago

Milestone: 0.20.1.1

comment:4 by Slava Akhmechet, 18 years ago

Milestone: 0.1.10.2

Not relevant for this release. Moving to next one.

Note: See TracTickets for help on using tickets.