Before the test's Java code can be generated, a location for storing the code must exist. By convention, this is a folder named src located in the same Java project as the test. If no source folder named src exists in any existing Java project, you must create one as explained in Java Build Path. Once the test's Java source code is generated, the Eclipse IDE automatically compiles the source code into an executable test.
To generate a test's source code, you must complete the following steps: