dimanche 22 juillet 2018

Record inputs and outputs for every method execution for future testing, and test selection

I have actually tried manually implementing this. Calling my own implemented method at the beginning of each method and before each return. Using serialization for storing inputs outputs, also for deep comparison of non-primitive objects. However, the programs that I tried to use this involves many indirect inputs and outputs such as class instance variables, variables from superclass, etc... I handled this by using reflection.

BUT it just became way too time consuming because of all the serialization and deserialization, I do need to access the inputs and outputs besides recording and testing, because I want to do some test selection based on the input values.

Has anyone done that? I looked into Chronon, but it is approaching this feature in a very complex way that I had no way to systematically access all the recorded input and output info.

I also tried to look into profiling, aspectj, but I got lost and didn't want to spend too much time reading all kinds of stuff if someone has a better idea about this.

Aucun commentaire:

Enregistrer un commentaire