Open rmarting opened 2 years ago
@rmarting I added the dependency below to the pom.xml
of simple-sample-web
, then recompiled and got this jar in my maven repo: javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
, which I added to the classpath.txt file.
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
With the additional jar I was able to complete generate and execute commands successfully. If I turn on the augmentation flag, tackle-test reaches 57.5% instruction coverage:
[tkltest|15:00:46.144] Final test-suite coverage rate: instruction=131/228(57.5%), branch=4/8(50.0%), line=36/59(61.0%), method=12/13(92.3%)
coverage_efficiency=0.05223285486443381 (11 test methods)
Describe the bug
Generating test classes for a Web application with Servlets fails with the following exception:
Attachments
To help us diagnose the failure, please add these attachments to the issue, as appropriate:
Source code of the application available here, analyzing the Web module of the application.
Content of
tkltest_classpath.txt
file identified inapp_classpath_file
option:Files generated from
generate
command:simple-sample-web_ctd_models_and_test_plans.json
simple-sample-web_EvoSuiteTestGenerator_bb_test_sequences.json
too long to be attached here.Environment information