This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients kbk, markroseman, roger.serwy, terry.reedy
Date 2017-07-07.06:26:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499408808.42.0.478330068774.issue24845@psf.upfronthosting.co.za>
In-reply-to
Content
I have accepted what I think is the core idea  -- testing functional pathways starting with user actions instead or in addition to pure unit tests.  For instance, test_configdialog.GeneralTest (newly revised in PR 2612) invokes buttons and inserts entries.  These simulated user actions change  Variable values; the trace callback is then called to add an option to the changes data structure.  The test is that the right addition was made.  I will not bother to test the callback separately as a unit.

Test speed is very important to me as I rerun a module's tests constantly when editing a module or test_module.  I try to efficiently cover the code, including taking branches both ways, without heaps of redundancy.

The search box tests use tk introspecton, but I didn't like it as it.  For me, it made the tests less clear. I would rather trade space for speed and clarity by keeping named references to all python objects needed for tests.

So for the moment, I prefer my implementation of the core idea.
History
Date User Action Args
2017-07-07 06:26:48terry.reedysetrecipients: + terry.reedy, kbk, roger.serwy, markroseman
2017-07-07 06:26:48terry.reedysetmessageid: <1499408808.42.0.478330068774.issue24845@psf.upfronthosting.co.za>
2017-07-07 06:26:48terry.reedylinkissue24845 messages
2017-07-07 06:26:47terry.reedycreate