We no longer support the Community feature, and it is now accessible in read-only mode only.
#cucumber
3 posts
Avatar of 邱政憲.
Senior Software Engineer
over 1 year

測試的「斷言(Assert)」怎麼寫也是個蠻值得討論的問題,目前我在 Cucumber 裡面如果是 UI 類型比較多用部分符合(如:可以看到某某文字)如果是 API 回應比較多是完整符合(某個 JSON 回傳完全一樣)

#cucumber

https://blog.aotoki.me/posts/2024/01/19/test-with-cucumber-syntax-assert/

215 Views
Avatar of 邱政憲.
Senior Software Engineer
over 1 year

現在想起來以前剛認識 Cucumber 時,找到的資源都只是介紹用法跟實作,好像比較少詳細說明原理上的概念。這樣來看 iThome 鐵人賽蠻多作品都講得蠻詳細的,只是不知道為什麼找資料不常出現 🤔

https://blog.aotoki.me/posts/2024/01/12/test-with-cucumber-syntax-describe/

#cucumber #測試

276 Views

See more posts about #cucumber.