【问题标题】:How do I get intern.js 2.1 to work with the new functionalSuites command line argument to intern-runner?如何让 intern.js 2.1 使用新的functionalSuites 命令行参数到intern-runner?
【发布时间】:2014-10-01 10:13:51
【问题描述】:

如果我做项目>node node_modules\intern\bin\intern-runner config=my/config functionalSuites=mySuite 它只是挂起。如果我省略functionalSuites,它会完美运行。

【问题讨论】:

    标签: intern


    【解决方案1】:

    这是由于 Intern 2.1.0 处理 functionalSuites 属性的方式存在错误。 Intern 一直认为functionalSuites 是一个数组。在命令行中仅指定 functionalSuites 的单个实例会导致 Intern 中 functionalSuites 的字符串值(而不是数组),这会破坏测试运行程序。

    问题已在Intern 2.1.1 中修复。

    【讨论】:

    • Csnover,我在它发布的那天就把它拉出来了,它就像魔法一样工作。谢谢你。这为开发人员提供了一种无需干预配置即可专注于测试的简便方法。
    猜你喜欢
    • 2017-11-23
    • 1970-01-01
    • 2016-03-17
    • 2019-12-12
    • 1970-01-01
    • 1970-01-01
    • 2020-12-24
    • 2014-06-04
    • 2022-01-17
    相关资源
    最近更新 更多