[cl-weblocks-ticket] #50: Automatically diff actual and expected output in deftest-html

#50: Automatically diff actual and expected output in deftest-html -------------------------+-------------------------------------------------- Reporter: anonymous | Owner: sakhmechet Type: enhancement | Status: new Priority: low | Milestone: 0.1 Component: weblocks | Version: pre-0.1 Keywords: | -------------------------+-------------------------------------------------- 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. -- Ticket URL: <http://trac.common-lisp.net/cl-weblocks/ticket/50> cl-weblocks <http://common-lisp.net/project/cl-weblocks> cl-weblocks

#50: Automatically diff actual and expected output in deftest-html --------------------------+------------------------------------------------- Reporter: anonymous | Owner: sakhmechet Type: enhancement | Status: new Priority: low | Milestone: 0.2 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by sakhmechet): * milestone: 0.1 => 0.2 Comment: Moving non-essential improvement items to 0.2 milestone. -- Ticket URL: <http://trac.common-lisp.net/cl-weblocks/ticket/50> cl-weblocks <http://common-lisp.net/project/cl-weblocks> cl-weblocks

#50: Automatically diff actual and expected output in deftest-html --------------------------+------------------------------------------------- Reporter: anonymous | Owner: sakhmechet Type: enhancement | Status: new Priority: low | Milestone: 0.2 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: --------------------------+------------------------------------------------- Comment (by sakhmechet): 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 -- Ticket URL: <http://trac.common-lisp.net/cl-weblocks/ticket/50> cl-weblocks <http://common-lisp.net/project/cl-weblocks> cl-weblocks

#50: Automatically diff actual and expected output in deftest-html --------------------------+------------------------------------------------- Reporter: anonymous | Owner: sakhmechet Type: enhancement | Status: new Priority: low | Milestone: 0.1.1 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by sakhmechet): * milestone: 0.2 => 0.1.1 -- Ticket URL: <http://trac.common-lisp.net/cl-weblocks/ticket/50> cl-weblocks <http://common-lisp.net/project/cl-weblocks> cl-weblocks

#50: Automatically diff actual and expected output in deftest-html --------------------------+------------------------------------------------- Reporter: anonymous | Owner: sakhmechet Type: enhancement | Status: new Priority: low | Milestone: 0.2 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by sakhmechet): * milestone: 0.1.1 => 0.2 Comment: Not relevant for this release. Moving to next one. -- Ticket URL: <http://trac.common-lisp.net/cl-weblocks/ticket/50> cl-weblocks <http://common-lisp.net/project/cl-weblocks> cl-weblocks
participants (1)
-
cl-weblocks