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找到它的源文件?

.

****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
4

1 回答 1

0

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

   -data "C:\<path_to_workspace>\workspace" -resource "<project_name>"

而不是:

   -data "C:\<path_to_workspace>\workspace\<project_name>"
于 2012-10-29T10:00:11.643 回答