当我尝试运行“mvn package”时,我得到了这个结果:(“evosuite-client”处的错误)
未能在项目 evosuite-client 上执行目标 org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test):有测试失败。
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] DependencyAnalysisTest.test1levelContext:64 expected:<[[]]> but was:<[[com.examples.with.different.packagename.context.complex.EntryPointsClass:dosmt(ILjava/lang/String;D)V com.examples.with.different.packagename.context.complex.SubClass:checkFiftneen(I)Z]]>
[ERROR] DependencyAnalysisTest.test2levelContext:80 expected:<[[]]> but was:<[[com.examples.with.different.packagename.context.complex.EntryPointsClass:dosmt(ILjava/lang/String;D)V com.examples.with.different.packagename.context.complex.SubClass:checkFiftneen(I)Z com.examples.with.different.packagename.context.complex.SubClass:bla(I)Z]]>
[ERROR] DependencyAnalysisTest.test3levelContext:95 expected:<[[]]> but was:<[[com.examples.with.different.packagename.context.complex.EntryPointsClass:dosmt(ILjava/lang/String;D)V com.examples.with.different.packagename.context.complex.SubClass:checkFiftneen(I)Z com.examples.with.different.packagename.context.complex.SubClass:bla(I)Z com.examples.with.different.packagename.context.complex.SubSubClass:innermethod(I)Z]]>
[ERROR] DependencyAnalysisTest.testContextInParamethers:107 expected:<[[]]> but was:<[[com.examples.with.different.packagename.context.complex.EntryPointsClass:doObj(Lcom/examples/with/different/packagename/context/complex/AParameterObject;)V com.examples.with.different.packagename.context.complex.ParameterObject:isEnabled()Z]]>
[INFO]
[ERROR] Tests run: 1576, Failures: 4, Errors: 0, Skipped: 217
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for EvoSuite 1.2.0:
[INFO]
[INFO] EvoSuite ........................................... SUCCESS [ 0.836 s]
[INFO] evosuite-runtime ................................... SUCCESS [ 41.903 s]
[INFO] evosuite-client .................................... FAILURE [03:54 min]
[INFO] evosuite-master .................................... SKIPPED
[INFO] evosuite-plugins ................................... SKIPPED
[INFO] Maven Plugin for EvoSuite .......................... SKIPPED
[INFO] evosuite-maven-plugin-test ......................... SKIPPED
[INFO] build-support-test ................................. SKIPPED
[INFO] evosuite-standalone-runtime ........................ SKIPPED
[INFO] evosuite-shaded .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:38 min
[INFO] Finished at: 2022-01-05T16:08:08Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project evosuite-client: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\BrunoGomes\Documents\Tese\Evosuite\client\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :evosuite-client