Can we provide relevant input (literals or numerics) to evosuite like Randoop?

46 views
Skip to first unread message

Marc Ouédraogo

unread,
Oct 25, 2022, 5:57:53 PM10/25/22
to EvoSuite
Hello everyone!

After some experimentation with Randoop to automatically generate tests and after some research I wanted to try EvoSuite. 

However, after searching the EvoSuite documentation I didn't see where we can use inputs or literals (string for example) like with Randoop to improve the test generation.

Thanks.

Gordon Fraser

unread,
Oct 27, 2022, 5:54:36 AM10/27/22
to Marc Ouédraogo, EvoSuite
Hi,

EvoSuite uses (1) strings extracted from the byte code, (2) strings generated automatically from instrumentation of string calls (e.g. if you call String.startsWith it will generate two possible strings, one that makes the condition true and one that makes it false), and (3) random strings. There currently is no way to add further external strings. Would this be an important feature?

Best wishes,
Gordon


--
You received this message because you are subscribed to the Google Groups "EvoSuite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to evosuite+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/evosuite/a4f87eb7-df38-41ec-b1e1-2ba595fbd0a5n%40googlegroups.com.

Marc Ouédraogo

unread,
Nov 8, 2022, 10:51:42 AM11/8/22
to EvoSuite
Hello,
sorry for the delay.
Thank you very much for your message.
For us this is a very important feature. Being able to provide inputs other than internal ones could improve the code coverage or improve bug detection.
Currently we are working on a project to compare the effects of these relevant inputs on the quality of the generated tests in terms of code coverage and bug detection.
We have started some experiments with Randoop and we would like to continue them with EvoSuite.
We would like to know if you can add this functionality or help us with hints to do so.

Best regards,


Reply all
Reply to author
Forward
0 new messages