Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException error while generating the tests #308

Open
shailajapatel opened this issue Sep 19, 2022 · 0 comments
Open

java.io.IOException error while generating the tests #308

shailajapatel opened this issue Sep 19, 2022 · 0 comments

Comments

@shailajapatel
Copy link

While generating the tests, get the following error while using java 8 and 11 -

base_test_generator = "combined"

[tkltest|13:31:53.914] Test generator output will be written to hubServicesRepo_CombinedTestGenerator_output.log
[tkltest|13:31:58.221] ERROR: Generating basic block sequences failed: Command '"/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home/bin/java" -Xmx2048m -cp /Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/tackle-test-generator-unit-main-SNAPSHOT.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/randoop-v4.3.0.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/evosuite-standalone-runtime-v1.2.0.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/evosuite-master-v1.2.0.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/commons-cli-1.4.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/soot-4.1.0.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/commons-io-2.6.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/javaparser-core-3.16.1.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/javaparser-symbol-solver-core-3.16.1.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/guava-29.0-jre.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/failureaccess-1.0.1.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/jackson-databind-2.12.6.1.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/jackson-core-2.12.6.jar:/Users/lucassebastiancabello/Downloads/tackle-test-generator-cli/tkltest-lib/jackson-annotations-2.12.6.jar org.konveyor.tackle.testgen.core.TestSequenceInitializer -app hubServicesRepo -tp hubServicesRepo_ctd_models_and_test_plans.json -pt /Users/lucassebastiancabello/Documents/Projects/quote-hub/core-security/build/classes/java/main -clpt /Users/lucassebastiancabello/Downloads/hubServices/Repository/tkltest-output-unit-hubServicesRepo/core-security/hubServicesRepo_core-security_build_classpath.txt -tg CombinedTestGenerator -tl 10 -jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home" 1> hubServicesRepo_CombinedTestGenerator_output.log' returned non-zero exit status 1.
Exception in thread "main" java.io.IOException: org.konveyor.tackle.testgen.core.EvoSuiteTestGenerator: java.io.IOException: Test generator failed to generate any tests
org.konveyor.tackle.testgen.core.RandoopTestGenerator: java.io.IOException: Test generator failed to generate any tests

	at org.konveyor.tackle.testgen.core.TestSequenceInitializer.createInitialTests(TestSequenceInitializer.java:258)
	at org.konveyor.tackle.testgen.core.TestSequenceInitializer.main(TestSequenceInitializer.java:600)

[tkltest|13:31:58.285] Warning: Failed to generate tests for the following modules: core-security. Please see log for details 

base_test_generator = "evosuite"

org.konveyor.tackle.testgen.core.TestSequenceInitializer -app hubServicesRepo -tp hubServicesRepo_ctd_models_and_test_plans.json -pt /Users/lucassebastiancabello/Documents/Projects/quote-hub/core-security/build/classes/java/main -clpt /Users/lucassebastiancabello/Downloads/hubServices/Repository/tkltest-output-unit-hubServicesRepo/core-security/hubServicesRepo_core-security_build_classpath.txt -tg EvoSuiteTestGenerator -tl 10 -jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home" 1> hubServicesRepo_EvoSuiteTestGenerator_output.log' returned non-zero exit status 1.
Exception in thread "main" java.io.IOException: org.konveyor.tackle.testgen.core.EvoSuiteTestGenerator: java.io.IOException: Test generator failed to generate any tests

	at org.konveyor.tackle.testgen.core.TestSequenceInitializer.createInitialTests(TestSequenceInitializer.java:258)
	at org.konveyor.tackle.testgen.core.TestSequenceInitializer.main(TestSequenceInitializer.java:600)

[tkltest|11:51:52.479] Generating tests for module core-common using config file /Users/lucassebastiancabello/Downloads/hubServices/Repository/tkltest-output-unit-hubServicesRepo/core-common/hubServicesRepo_core-common_generated_tkltest_config.toml.
[tkltest|11:51:53.236] Computing coverage goals using CTD

Environment information

CLI version
OS: macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant