reportNG替代testNG报告
请问这些报的是什么错啊?Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Module
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at org.apache.velocity.util.introspection.ClassMap.getAccessibleMethods(ClassMap.java:258)
at org.apache.velocity.util.introspection.ClassMap.populateMethodCache(ClassMap.java:151)
at org.apache.velocity.util.introspection.ClassMap.<init>(ClassMap.java:64)
at org.apache.velocity.util.introspection.IntrospectorBase.createClassMap(IntrospectorBase.java:126)
at org.apache.velocity.util.introspection.IntrospectorBase.getMethod(IntrospectorBase.java:112)
at org.apache.velocity.util.introspection.Introspector.getMethod(Introspector.java:100)
at org.apache.velocity.runtime.parser.node.PropertyExecutor.discover(PropertyExecutor.java:65)
at org.apache.velocity.runtime.parser.node.PropertyExecutor.<init>(PropertyExecutor.java:39)
at org.apache.velocity.util.introspection.UberspectImpl.getPropertyGet(UberspectImpl.java:156)
at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:125)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
at org.apache.velocity.runtime.parser.node.ASTAddNode.value(ASTAddNode.java:66)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) 问题没有描述清楚,我想用reportNG替代testNG在ant中写了段代码,如下。关闭testNG自身的报告,使用reportNG的报告。testNG可以调用,但是报告没出来,然后报出这些错误。
请问下是什么原因。
<target name="runtest" depends="build">
<testng classpathref="TmTest.classpath"
outputdir="${test-results.dir}"
useDefaultlisteners="false"
listeners="org.uncommons.reportng.HTMLReporter,org.testng.reporters.FailedReporter" >
<xmlfileset dir="${testng}" includes="${testng.file}"/>
<sysproperty key="org.uncommons.reportng.title" value="My Test Report"/>
</testng>
</target>
http://www.zxmh.net/html/book36/
看帖顶帖这是必须滴!
你真够调皮的!
页:
[1]