Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

For an assertion failures for the steps I.see or I.dontSee methods assertion error messages are not able to capture as it's not available in test object in hook method _failure(test)

未關閉
#4,464 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
javascript, node.js, playwright
領域
testing

研究方向

首先,在 Playwright 設定下,追蹤 CodeceptJS 的 hook 方法 _failure(test),了解 I.seeI.dontSee assertion 失敗時的處理流程。確認 assertion 訊息儲存在哪裡,以及 Allure 報告是否接收到該訊息;當失敗訊息可供 hook 使用並出現在報告中時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

stale
What are you trying to achieve?

For an assertion failures for the steps I.see or I.dontSee methods assertion error messages should be able to capture

What do you get instead?

Not able to capture the error message as the same is not available in test object in hook method _failure(test).
Screenshot 2024-08-21 at 11 27 11 AM

Hence not able to capture assertion failure message in Allure report:
Screenshot 2024-08-21 at 11 30 13 AM

Provide console output if related. Use --verbose mode for more details.

# paste output here

Provide test source code if related

// paste test
Details
  • CodeceptJS version: 3.6.4
  • NodeJS Version: 20
  • Operating System: MacOS
  • Playwright
  • Configuration file:
# paste config here
主要語言
JavaScript
星號
4.2k
分支
756
平均合併
2 天 9 小時
30 天內合併 PR
16

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

codeceptjs/CodeceptJS 的其他 Issue

查看 codeceptjs/CodeceptJS 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。