日食的Jtest(cli)找不到任何文件,“要检查的源文件:0”

时间:2012-10-04 09:12:12

标签: eclipse parasoft

当我在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. 为什么检查ZERO源代码文件?
  2. jtestcli如何查找其源文件?
  3. ****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
    

1 个答案:

答案 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>"