Functional verification test framework with Go - Rain Wu

tags: COSCUP2020 中階 TR214

歡迎來到 https://hackmd.io/@coscup/2020 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

go test

bind with testing package

what is testing.T

unit test vs. functional verification test

unit test

  • developer responsibility

functional verification test

  • how user use, not how developers devlop
  • cross package, or even cross micro-services
  • Bottleneck
    • Need to really start the service
    • Even need infrastruture and enviroment

scenario & requirement

  • Hope to get the results of all tests at once
  • Hope to get advanced information

design & implementation

  • Use agent to run tests
  • Use testing.T to manage state & collect information
  • Warning of test server
    • pwd / token / permission
    • too busy (use job queue or flag to avoid it)
Select a repo