codeceptjs / codeceptjs/CodeceptJS

Missing printscreens when using stepByStep reporter and run-workers with Codeceptjs 3.7.3

オープン
#4,856 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

**What are you trying to achieve?**
With run-workers ( and same symptoms with run-multiple), obtain a complete report using the stepByStep reporter

**What do you get instead?**
The top records.html file is created, but the screenshots for failed tests look like they're not stored in the appropriate directory : they're stored in _output and as a result the stepByStep report looks empty.
```
jenkins@tests-projects-linkurious-enterprise-develop-stable-1025--wlv51:~/agent/workspace/urious-enterprise_develop-stable$ ls -lah reports/
checkstyle.xml html/ unit/
jenkins@tests-projects-linkurious-enterprise-develop-stable-1025--wlv51:~/agent/workspace/urious-enterprise_develop-stable$ ls -lah reports/html/stepByStep/record_
record_44efc55c9202038f8c3e19f105604f19b9be2e4abdf62d06e608de72e61854c9/ record_7f172197ce773e117720ee3040980b9a2fb74f42d42171d7debeeef034b102bd/
jenkins@tests-projects-linkurious-enterprise-develop-stable-1025--wlv51:~/agent/workspace/urious-enterprise_develop-stable$ ls -lah reports/html/stepByStep/record_*
reports/html/stepByStep/record_7f172197ce773e117720ee3040980b9a2fb74f42d42171d7debeeef034b102bd:
total 12K
drwxr-xr-x 2 jenkins jenkins 4.0K Feb 12 16:49 .
drwxr-xr-x 4 jenkins jenkins 4.0K Feb 12 16:52 ..
-rw-r--r-- 1 jenkins jenkins 3.0K Feb 12 16:49 index.html

reports/html/stepByStep/record_c213406b65383a76910a89e0886590cbbcd8527ddb170fde82892d35ce17a7ca:
total 8.0K
drwxr-xr-x 2 jenkins jenkins 4.0K Feb 12 16:52 .
drwxr-xr-x 4 jenkins jenkins 4.0K Feb 12 16:52 ..
jenkins@tests-projects-linkurious-enterprise-develop-stable-1025--wlv51:~/agent/workspace/urious-enterprise_develop-stable$ ls -lah _output/
total 12K
drwxr-xr-x 3 jenkins jenkins 4.0K Feb 12 16:49 .
drwxr-xr-x 13 jenkins jenkins 4.0K Feb 12 16:44 ..
drwxr-xr-x 2 jenkins jenkins 4.0K Feb 12 16:49 basic_chromium1
jenkins@tests-projects-linkurious-enterprise-develop-stable-1025--wlv51:~/agent/workspace/urious-enterprise_develop-stable$ ls -lah _output/basic_chromium1/
total 48K
drwxr-xr-x 2 jenkins jenkins 4.0K Feb 12 16:49 .
drwxr-xr-x 3 jenkins jenkins 4.0K Feb 12 16:49 ..
-rw-r--r-- 1 jenkins jenkins 39K Feb 12 16:49 User_can_create_and_delete_visualizations_within_a_spa.failed.png
jenkins@tests-projects-linkurious-enterprise-develop-stable-1025--wlv51:~/agent/workspace/urious-enterprise_develop-stable$
```

Please find attached an example of the stepByStep report and our codecept.conf.js file
[stepByStep.zip](https://github.com/user-attachments/files/18797289/stepByStep.zip)
[codecept.conf.js.zip](https://github.com/user-attachments/files/18797301/codecept.conf.js.zip)

This is a follow-up of https://github.com/codeceptjs/CodeceptJS/issues/4637

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、添付された codecept.conf.js と stepByStep レポートを確認し、run-workers と run-multiple がレポートおよびスクリーンショットのパスをどのように決定しているかに注目します。失敗を再現し、_output と reports/html/stepByStep/record_* を比較します。stepByStep レポートで使用される場所に失敗したテストのスクリーンショットが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。