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

@LoadFromFile #29

Open almondtools opened 7 years ago

almondtools commented 7 years ago

By annotating values with @LoadFromFile we could point the generator not to generate code into the test but to read the setup/matcher directly from a file. This schould prevent generated Testfiles to become to large just because of data (note that .java-files have a size limit).

This already works for primitive arrays but should be extended after #27 (with a known serialization format) to support arbitrary objects.