mikepenz/action-junit-report

invalid path created when a scenario fails

Open

#1,324 opened on 2025年3月17日

GitHub で見る
 (4 comments) (1 reaction) (0 assignees)TypeScript (156 forks)github user discovery
help wanted

Repository metrics

Stars
 (418 stars)
PR merge metrics
 (PR metrics pending)

説明

We have a structure like:

features
|-target_1
|\
  - Test1.feature
  - Test2.feature
|-target_2
|\
  - Test1.feature
  - Test2.feature

We've just noticed a failure on target_2/Test1.feature:

<testcase classname="Test1" name="Test1.11 Title Goes Here" time="9.180492">
  <failure message="failed Test1.11 Title Goes Here" type="failed">
    <![CDATA[ Scenario: Test1.11 Title Goes Here Given]]>
    features/target_2/Test1.feature:278:in `step name' ]]>
  </failure>
  <system-out>
    <![CDATA[ ]]>
  </system-out>
  <system-err>
    <![CDATA[ ]]>
  </system-err>
</testcase>

However, the report made by this action-junit-report reads as follows:

JUnit Test Report - 16 tests run, 15 passed, 0 skipped, 1 failed.
     🧪 - [root path redacted]\features\target_1\Test1.feature | failed failed Test1.11 Title Goes Here"
  ℹ️ - JUnit Test Report - Creating check (Annotations: 0)

As you might have noticed, it changed target_2 to target_1 (and changed//added the root path)

Is this a limitation from the action? Or does it actually parse something incorrect?

コントリビューターガイド