【问题标题】:Karma runs the wrong reporter业力跑错了记者
【发布时间】:2017-05-26 23:08:29
【问题描述】:

即使 Karma.config.js 状态为“progress”且命令行开关为“progress”,运行以下命令也会给我来自 TeamCity 报告器的输出。我什至没有在本地或全球安装 TeamCity 报告?!有谁知道为什么会发生这种情况?

C:\Projects\Project>karma run --reporters progress
##teamcity[enteredTheMatrix]
##teamcity[testSuiteStarted nodeId='1' parentNodeId='0' name='karma.conf.js' nodeType='config' locationHint='config://C:\Projects\Project\tests\karma.conf.js']
##teamcity[testSuiteStarted nodeId='2' parentNodeId='1' name='Chrome 58.0.3029 (Windows 7 0.0.0)' nodeType='browser']
##teamcity[testCount count='2']
##teamcity[testSuiteStarted nodeId='3' parentNodeId='2' name='Simple test' nodeType='suite' locationHint='suite://Simple test']
##teamcity[testStarted nodeId='4' parentNodeId='3' name='should pass' nodeType='test' locationHint='test://Simple test.should pass']
##teamcity[testStdOut nodeId='4' out='|'/base/tests/results/unit/viewModelSpec.js|'|n']
##teamcity[testFinished nodeId='4' duration='0']
##teamcity[testSuiteStarted nodeId='5' parentNodeId='2' name='Results Page View Model' nodeType='suite' locationHint='suite://Results Page View Model']
##teamcity[testSuiteStarted nodeId='6' parentNodeId='5' name='convertDate function' nodeType='suite' locationHint='suite://Results Page View Model.convertDate function']
##teamcity[testStarted nodeId='7' parentNodeId='6' name='should return a string |'loading...|' when the date has yet to be set' nodeType='test' locationHint='test://Results Page View Model.convertDate function.should return a string |'loading\.\.\.|' when the date has yet to be set']
##teamcity[testFinished nodeId='7' duration='0']
##teamcity[testSuiteFinished nodeId='3']
##teamcity[testSuiteFinished nodeId='6']
##teamcity[testSuiteFinished nodeId='5']
##teamcity[testSuiteFinished nodeId='2']
##teamcity[testSuiteFinished nodeId='1']

【问题讨论】:

    标签: karma-runner


    【解决方案1】:

    我自己刚刚弄清楚了这个谜。如果您通过 Intelij\Webstorm 等生成了 Karma 服务器,则该服务器配置有 TeamCity 报告器。产生你自己的服务器,你会得到你指定的记者。 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-24
      • 2014-06-14
      • 2013-03-10
      • 1970-01-01
      • 1970-01-01
      • 2017-12-29
      相关资源
      最近更新 更多