GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Troubleshooting Troubleshooting
Olga Naumenko edited this page
Here is the list of known but unsolved UnitTestBot Java problems with workarounds:
When using JDK 17, you may get this kind of exception for generating tests:
The symbolic execution engine in UnitTestBot Java may generate tests that should pass, but they fail.
The reason is that sometimes UnitTestBot Java cannot build an Object without using Reflection.
Reflection methods using See an example in the issue. The solution is to open the necessary packages by editing test run configuration. The same test may require more than one package to open. Please open the packages suggested in the exception messages one by one. Editing test run configuration depends on the build system you use to run tests. For Maven or IntelliJ, add the keys to the test run configuration—see the most common example:
For example: For Gradle, add the following VM options to the test task in the For example: Problem details: When using JDK 17, you may get uncompilable tests, and IntelliJ IDEA may show something like this:
Using JDK 17, UnitTestBot Java may try to mock unexported packages and create uncompilable tests. See an example in the issue. Solution: Add the following key to the test run configuration (see the related solution):
(redirect to /docs in main repo)
Clone this wiki locally |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |