Unit Test Notes
Here are some design notes for the unit test feature of tbwiki:
- 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
- have a collection of pages with HTML 'expected result' files
- this feature overlaps with caching
- generation of html file
- checking status of html file
- 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
- create a directory:
- need compare_with_expected_output function
- may need to run with some variables different
- need to run with different user?, cookies?, theme?
- 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