其他测试框架 修改 testNG 报告的 reportNG 源码的问题

曾晖斌 · September 23, 2015 · Last by 斯拉 replied at September 09, 2016 · 1414 hits

因为报告中需要截图,所以需要对 reportNG 进行修改,但目前修改的后在打包的时候出问题了,一下午在尝试解决也没有什么结果,就上来问下大家了

https://github.com/dwdyer/reportng

上面是源码的地址,源码是在 reportng 这个目录下,

问题 1、剩下的目录不清楚是干什么的,有清楚的麻烦说下

我在 eclipse 中导入 reportng,右键使用 Run As 打包的时候出现如下错,查过百度说是少了一对标签,加上了还是报错。

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.056 s
[INFO] Finished at: 2015-09-23T20:00:26+08:00
[INFO] Final Memory: 6M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException

问题 2、这个开源项目打包的代码需要修改吗,还是要怎么做

目前就上面这两个问题。

共收到 4 条回复 时间 点赞

#1 楼 @oscarxie 没有加,我试试加下看看

请问怎么把源码导入 eclipse,是用 maven 导入还是什么导入?

楼主修改后源码是如何打包的 ?

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up