almondtools / testrecorder

Create Test Fixtures from Runnable Java Code
http://testrecorder.amygdalum.net/
GNU Lesser General Public License v3.0
51 stars 5 forks source link

Testing only for changes #10

Closed almondtools closed 8 years ago

almondtools commented 8 years ago

By default testrecorder generates the setup code and matchers for the complete state available.

The generated code could be much smaller if not the complete state is rendered but only those parts of the state that did change.

almondtools commented 8 years ago

With this approach we would assert:

Yet the old approach additionally asserts:

At this time I consider the second assertion to be very important (especially in legacy code). So this issue will be closed until this evaluation changes.