|Open||None||T60941 Missing unit tests for pywikibot library (tracking)|
|Resolved||jayvdb||T72336 Add script integration tests|
|Open||None||T78258 script test: python category.py move|
Split off from bug 58084 ; pywikibot needs unit tests that write to a (test) wiki, and integration tests which use scripts to perform high level tasks and verifies the results are correct.
We have a high level set of script tests called .. 'script_tests.py', and specific tests for the scripts archivebot and data_ingestion (however these test the script class, and not the script cmd line interface).
Most scripts now have a 'main' which can be be used as an entry point to invoke a script using its command line interface. And we have a patch pending to provide an 'expect' like interface to control a scripts and supply values via stdin for scripts which interact with the user.