How to generate randoop testcases for whole java package instead of mentioning all the classes name in classes.txt.
And if possible name those tests in accordingly to classNames for which it is being tested.
How to generate randoop testcases for whole java package instead of mentioning all the classes name in classes.txt.
And if possible name those tests in accordingly to classNames for which it is being tested.
Copyright © 2021 Jogjafile Inc.
You can use the
--testjar
command-line options if there is a.jar
file for the package. This is the most common use.Or, you can use a command like
to get a list of all the Java files in the package, to put in an argument to
--classlist
. Note that if the package depends on other packages that you have excluded from generation, Randoop may not be able to test it thoroughly.