Closed jzelenjak closed 2 years ago
EvoSuite's -Dtarget_method
parameter expects a method descriptor from the context of java ASM. Implementing true test generation for a target method is out of the scope of this issue. For now this is implemented with -Dtarget_method_prefix
, the downside being that this will generate tests additional tests for all method overloads and all methods where the method name start with the provided prefix.
Description of changes made
Why is merge request needed
This merge request is needed since one of the client's requirements was the generation of tests for a selected method.
Other notes
What is missing?
Prevent from generating tests for method not from the project folder
For now it works with
-Dtarget_method_prefix
, which matches a method name prefix (will generate tests for all method overloads, all method names that start with the prefix). For the future we have 2 options: either manually convert method signatures to ASM method descriptors or modify EvoSuite's method matching[x] I have checked that I am merging into correct branch