当我在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
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
答案 0 :(得分:0)
使用-data选项指定工作空间的路径,因此为了测试项目&lt; project_name&gt;在C:\&lt; path_to_workspace&gt; \ workspace中,你应该使用:
-data "C:\<path_to_workspace>\workspace" -resource "<project_name>"
而不是:
-data "C:\<path_to_workspace>\workspace\<project_name>"