Unit Test Notes
Desired Features [edit section]
- process a set of unit tests automatically, and report any regressions
- save an existing HTML for a wiki page as a "good" reference for the output for particular markup
- have specific unit tests, with markup, and expected html
- process those in a batch
- have a collection of pages with HTML 'expected result' files
- this feature overlaps with caching
- generation of html file
- checking status of html file
Design of regression test feature [edit section]
- run engine from command line to convert a page into it's corresponding HTML
- OR, run the regression test inside a Processor
- forms needed:
- show list of pages and their status:
- green = tbwiki current engine is producing expected output
- red = tbwiki current engine is not producing expected output
- orange = there is not expected output file
- allow saving a page's current output as the expected output
- should convert to green
- show list of pages and their status:
- create a directory:
- expected_html
- need compare_with_expected_output function
Some other notes [edit section]
- may need to run with some variables different
- need to run with different user?, cookies?, theme?
to do [edit section]
- ProcessorRegressionCheck.py
- by default, show list of all pages, with status of each page
- show a link for each page, to update the expected output
- remove expected_output pages by hand