【问题标题】:jsTestDriver: org.jvyaml.ParserException when running testsjsTestDriver:运行测试时出现org.jvyaml.ParserException
【发布时间】:2012-05-02 02:44:54
【问题描述】:

我尝试使用 jsTestDriver 运行 javascript 测试。当我开始测试时,发生了异常。

jsTestDriver的.conf文件在args中只包含一个文件路径时不会出现该问题,例如:

plugin:
 - name: "coverage"
   jar: "plugins/coverage-1.3.4.b.jar"
   module: "com.google.jstestdriver.coverage.CoverageModule"
   args: "/examplepath/data/jsdevelopment/src/webhome/bp2011/js/external/jquery.js"

timeout: 60

【问题讨论】:

    标签: javascript exception js-test-driver sinon


    【解决方案1】:

    我的问题是我用引号将 args 中的路径分开

    args: "/examplepath/data/jsdevelopment/src/webhome/bp2011/js/external/jquery.js", "/examplepath2/data/jsdevelopment/src/webhome/bp2011/js/external/jquery.js"
    

    解决办法是:

    args: "/examplepath/data/jsdevelopment/src/webhome/bp2011/js/external/jquery.js,/examplepath2/data/jsdevelopment/src/webhome/bp2011/js/external/jquery.js"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-07
      • 2017-03-26
      • 2023-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多