Protractor 诱惑JS量角器CucumberFramework cucumberOpts-多个格式化程序

Protractor 诱惑JS量角器CucumberFramework cucumberOpts-多个格式化程序,protractor,cucumber,formatter,allure,cucumberjs,Protractor,Cucumber,Formatter,Allure,Cucumberjs,最近,我在我的项目allure cucumberjs reporter中实现了。它工作得很好,但我还有一个在测试执行期间格式化日志的包()。现在,虽然我为cucumberOpts.format和CucumberPretty提供诱惑记者,但第二个不想工作 我使用的是: "dependencies": { "allure-cucumberjs": "^2.0.0-beta.6", "cucumber": "^6.0.5", "cucumber-pretty": "^6.0.0

最近,我在我的项目allure cucumberjs reporter中实现了。它工作得很好,但我还有一个在测试执行期间格式化日志的包()。现在,虽然我为cucumberOpts.format和CucumberPretty提供诱惑记者,但第二个不想工作

我使用的是:

"dependencies": {
    "allure-cucumberjs": "^2.0.0-beta.6",
    "cucumber": "^6.0.5",
    "cucumber-pretty": "^6.0.0",
    "protractor": "^5.4.2",
    "protractor-cucumber-framework": "^6.2.0",
    "ts-node": "^8.5.4",
    "typescript": "^3.7.3",
  },
config.ts

 cucumberOpts: {
    compiler: 'ts:ts-node/register',
    format: [
        'json:results/results.json',
        'node_modules/cucumber-pretty',
        'reporter/reporter.ts',
        'rerun:@rerun.txt',
    ],
    require: ['../e2e/steps/*.ts', '../e2e/support/*.ts', '../support/*.ts'],
    strict: true,
    tags: '',
  }
如果我从上面的配置文件中删除'reporter/reporter.ts',那么这个插件就工作得很好


这是一个bug吗?它以某种方式诱惑重写并禁用其他格式化程序?或者它应该并行工作?

格式
部分,您可以包含多个报告器,但其中只有一个可以输出到stdout。这是cucumber API的一个限制。 您需要将Allure reporter指向一个虚拟文件:
reporter/reporter.ts:dummy.txt