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

Support war package in classpath #449

Open
sweetStreet opened this issue Apr 23, 2023 · 0 comments
Open

Support war package in classpath #449

sweetStreet opened this issue Apr 23, 2023 · 0 comments

Comments

@sweetStreet
Copy link

Context

Exception caused by not supporting war package in the classpath
Project: jenkinsci/email-ext-plugin
SHA: 699277c4
Evosuite version: 1.2.0

Steps to Reproduce

  1. git clone https://github.com/jenkinsci/email-ext-plugin.git jenkinsci_email-ext-plugin
  2. cd jenkinsci_email-ext-plugin
  3. git checkout 699277c4
  4. mvn dependency:build-classpath -Dmdep.outputFile=evosuite-deps.txt
  5. java -jar ${PATH_TO_evosuite-1.2.0.jar} -DCP_file_path evosuite-deps.txt -class hudson.plugins.emailext.groovy.sandbox.EmailExtScriptTokenMacroWhitelist

EvoSuite Arguments

Not relavant

Current Result

  • EvoSuite 1.2.0
  • Going to generate test cases for class: hudson.plugins.emailext.groovy.sandbox.EmailExtScriptTokenMacroWhitelist
    [MASTER] 11:13:31.743 [main] ERROR EvoSuite - Fatal crash on main EvoSuite process. Class using seed 1682266411741. Configuration id : null
    java.lang.IllegalArgumentException: The class path resource /home/user/.m2/repository/org/jenkins-ci/main/jenkins-war/2.277.1/jenkins-war-2.277.1.war is not valid
    at org.evosuite.classpath.ResourceList.addEntry(ResourceList.java:504)
    at org.evosuite.classpath.ResourceList.initCache(ResourceList.java:477)
    at org.evosuite.classpath.ResourceList.getCache(ResourceList.java:464)
    at org.evosuite.classpath.ResourceList.hasClass(ResourceList.java:172)
    at org.evosuite.executionmode.TestGeneration.findTargetClass(TestGeneration.java:204)
    at org.evosuite.executionmode.TestGeneration.generateTests(TestGeneration.java:219)
    at org.evosuite.executionmode.TestGeneration.executeTestGeneration(TestGeneration.java:83)
    at org.evosuite.EvoSuite.parseCommandLine(EvoSuite.java:335)
    at org.evosuite.EvoSuite.main(EvoSuite.java:103)

Expected result

Supporting war package

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