Re: Does automatic golden master unittest generation exist/or is it feasible?

2017-04-05 Thread dieter
fle...@gmail.com writes: > I have a really large and mature codebase in py2, but with no test or > documentation. > > To resolve this I just had a simple idea to automatically generate tests and > this is how: > > 1. Have a decorator that logs all arguments and return values > > 2. Put them in

Re: Does automatic golden master unittest generation exist/or is it feasible?

2017-04-04 Thread Steven D'Aprano
On Tue, 04 Apr 2017 19:40:03 -0700, fleshw wrote: > People told me that there's a similar concept called "Golden Master > Testing" where it keeps a "golden record" and runs test case on it. So > it looks like I'm trying to automate golden master testing. > > So my question is this: > > 1. Is

Does automatic golden master unittest generation exist/or is it feasible?

2017-04-04 Thread fleshw
I have a really large and mature codebase in py2, but with no test or documentation. To resolve this I just had a simple idea to automatically generate tests and this is how: 1. Have a decorator that logs all arguments and return values 2. Put them in a test case and have it run in