从场景内部调用功能文件时失败的测试不显示哪个场景(在被调用的功能中)失败

Failed tests when calling feature file from inside a scenario do not show which scenario (in the called feature) failed

我通过在场景中调用它来重用功能文件。上下文是我想要一些共同的特性,我的所有端点都需要在 common.feature 文件中进行测试。然后在特定端点的功能文件 (endpoint.feature) 中,我首先在 Scenario 中调用 common.feature 文件,然后有其他特定于此端点的场景。

我的 common.feature 文件如下所示:

Feature: ...  
Scenario: scenario 1  
Scenario: scenario 2  

我的 endpoint.feature 文件如下所示:

Feature: ...
Scenario: test
  * call read('common.feature')
...

一切正常。来自 common.feature 文件的场景被执行。问题是,如果 common.feature 中的 Scenario 1 失败,我会得到以下结果:

Tests in error: * call read('classpath:common/common.feature')(Scenario: test): feature call failed: classpath:common/common.feature(..) Scenario: test: feature call failed: classpath:common/common.feature(..)

空手道并没有确切说明 common.feature 中的哪个场景失败了。例如,如果我在 common.feature 中有 20 个场景,那么很高兴能够准确地看到哪些场景失败了。

有什么方法可以让 Karate 准确列出被调用功能文件中的哪些场景失败(在功能文件正常执行期间显示的方式)?

对于以后遇到此问题的任何人,此功能现在适用于 v >= 0.6.2