首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jtest(cli) for eclipse没有找到任何文件,有“要检查的源文件: 0”

Jtest(cli) for eclipse没有找到任何文件,有“要检查的源文件: 0”
EN

Stack Overflow用户
提问于 2012-10-04 09:12:12
回答 1查看 1.3K关注 0票数 0

在eclipse中使用Jtest运行测试时,将检查源代码文件并给出结果。

但是当我运行这个命令行时:

jtestcli.exe -config "team://<our_team_conf>" -showdetails -localsettings "C:\<path_to_localsettings_file>\localsettings.properties" -data "C:\<path_to_workspace>\workspace\<project_name>" -report "C:\<path_to_report>\report" -publish

  1. 为什么要检查零源代码文件?
  2. jtestcli如何找到它的源文件?

代码语言:javascript
复制
****Total Files: 0
Source Files to Check: 0
Total Source Lines: --
Source Lines to Check: --
Test Data Files: ---
Excluded Files: 0****


**
**Files Checked (Coding Standards): 0/0
Files Skipped (Coding Standards): 0
Files Checked (BugDetective): 0/0
Files Skipped (BugDetective): 0
Projects - Metrics Estimated: 0/0 - 0/0
Failed Runs: 0
Violations Found: 0
Violations Suppressed: 0
Number of Rules Violated: 0**



****Executed Test Cases: 0
Passed:  --     Failed: --     Skipped: --
Runtime Exceptions: 0
Assertion Failures: 0
Contract Violations: 0
Runtime Error Detection Violations: 0
Unverified Outcomes: 0
Coverage:
   Line: --
   Decision: --
Runtime Error Detection:
   Classes Loaded: --  Analyzed: --  Instrumented: --
   Number of Rules Violated: 0
   Violations Suppressed: 0**
**

result:
-Empty PDF reports
-No result uploaded to concerto
EN

回答 1

Stack Overflow用户

发布于 2012-10-29 10:00:11

使用-data选项可以指定工作空间的路径,因此为了在C:\\workspace中测试项目,您应该使用:

代码语言:javascript
复制
   -data "C:\<path_to_workspace>\workspace" -resource "<project_name>"

而不是:

代码语言:javascript
复制
   -data "C:\<path_to_workspace>\workspace\<project_name>"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12723967

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档