FrontPage 

TB Wiki

Login

Regression Test

Expected HTML for page "Unit_Test_Notes"


expected html
nothing
t1Here are some design notes for the unit test feature of tbwiki:t
2<p>
3<h2><a name="Desired_Features">Desired Features</a>
4<span align=right class="section_edit_link">[<a href="/tbwiki/Unit_Test_Notes?action=edit&section=Desired_Features">edit section</a>]</font></span>
5</h2>
6<ul><li>process a set of unit tests automatically, and report any regressions
7<li>save an existing HTML for a wiki page as a "good" reference for the output for particular markup
8<li>have specific unit tests, with markup, and expected html
9<ul><li>process those in a batch
10</ul>
11</ul>
12<p>
13<ul><li>have a collection of pages with HTML 'expected result' files
14<li>this feature overlaps with caching
15<ul><li>generation of html file
16<li>checking status of html file
17</ul>
18</ul>
19<p>
20<h2><a name="Design_of_regression_test_feature">Design of regression test feature</a>
21<span align=right class="section_edit_link">[<a href="/tbwiki/Unit_Test_Notes?action=edit&section=Design_of_regression_test_feature">edit section</a>]</font></span>
22</h2>
23<ul><li>run engine from command line to convert a page into it's corresponding HTML
24<li>OR, run the regression test inside a Processor
25</ul>
26<p>
27<ul><li>forms needed:
28<ul><li>show list of pages and their status:
29<ul><li>green = tbwiki current engine is producing expected output
30<li>red = tbwiki current engine is not producing expected output
31<li>orange = there is not expected output file
32</ul><li>allow saving a page's current output as the expected output
33<ul><li>should convert to green
34</ul></ul><li>create a directory:
35<ul><li>expected_html
36</ul><li>need compare_with_expected_output function
37</ul>
38<p>
39<h2><a name="Some_other_notes">Some other notes</a>
40<span align=right class="section_edit_link">[<a href="/tbwiki/Unit_Test_Notes?action=edit&section=Some_other_notes">edit section</a>]</font></span>
41</h2>
42<ul><li>may need to run with some variables different
43<ul><li>need to run with different user?, cookies?, theme?
44</ul>
45</ul>
46<p>
47<h2><a name="to_do">to do</a>
48<span align=right class="section_edit_link">[<a href="/tbwiki/Unit_Test_Notes?action=edit&section=to_do">edit section</a>]</font></span>
49</h2>
50<p>
51<ul><li>ProcessorRegressionCheck.py
52<ul><li>by default, show list of all pages, with status of each page
53<li>show a link for each page, to update the expected output
54</ul><li>remove expected_output pages by hand
55</ul>
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op

Differences for page "Unit_Test_Notes"


expected html
generated html
t No Differences Found t No Differences Found 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op

Update saved output

Back to diff page

Return to Regression_Test page
TBWiki engine 1.9.3 by Tim Bird