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

Separate recording phase and test generation #27

Closed almondtools closed 6 years ago

almondtools commented 7 years ago

I think about separating both phases:

The result of the recording is a set of records (maybe configurable as files, db-records, ...)

There would be some advantages in such a new architecture:

The files cannot be strongly structured, since the serialization model is extendable (there may be more and more subtypes of serialized value)

The next task would be:

almondtools commented 7 years ago

This new architecture should be applied after getting insights to the usage of testrecorder, so it is probably not coming in the next milestone

almondtools commented 7 years ago

Some further ideas that would benefit from the architecture change:

Building pipelines for recorded data:

Building databases for recorded data:

almondtools commented 7 years ago

Some thoughts for proceeding:

Next, after all tests running again, we can write a new client only depending on the filesystem snapshot. The new SnapshotConsumer interface will probably not handle the ContextSnapshot object but probably the already serialized bytes (or a stream of these bytes).

almondtools commented 6 years ago

The tool evolving from this will be testrecorder-analyzer.

Currently it is a prototypic implementation that must grow with real projects. The next step would be to write a manual how to integrate it into testrecorder.