Opened 17 years ago
Last modified 17 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 Changed 17 years ago by
Milestone: | 0.1 → 0.2 |
---|
comment:2 Changed 17 years ago by
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?
- Franz's HTML parser -
http://opensource.franz.com/xmlutils/xmlutils-dist/phtml.htm
comment:3 Changed 17 years ago by
Milestone: | 0.2 → 0.1.1 |
---|
comment:4 Changed 17 years ago by
Milestone: | 0.1.1 → 0.2 |
---|
Not relevant for this release. Moving to next one.
Moving non-essential improvement items to 0.2 milestone.