Split off from T60084 ; pywikibot needs unit tests which use scripts to perform high level tasks on a test wiki and verifies the results are correct.
Version: core-(2.0)
Severity: enhancement
Split off from T60084 ; pywikibot needs unit tests which use scripts to perform high level tasks on a test wiki and verifies the results are correct.
Version: core-(2.0)
Severity: enhancement
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add unit test for isbn script | pywikibot/core | master | +127 -0 | |
Miscellaneous pwb improvements | pywikibot/core | master | +235 -161 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | 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.
write tests are now possible; testing scripts that write to a site still needs investigation and building.
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.
Change 173713 had a related patch set uploaded (by John Vandenberg):
Miscellaneous pwb improvements
Change 181427 had a related patch set uploaded (by M4tx):
Add unit test for isbn script
We have some integration script tests. More are needed, and can be tracked in the Pywikibot-tests 'New tests needed' workboard column