用AWK 編寫的微型CLI 程序測試器fhtagn

fhtagn 是一個微型CLI 工具,用於對命令行程序進行讀寫測試。假設你創建了一些程序command。你要為其創建一組端到端測試。有了fhtagn,它就像創建一個有以下內容的tests.tush文件一樣簡單: $ command –that –should –execute correctly | expected stdout output $ command –that –will –cause error @ expected stderr output ? expected-exit-code 運行測試: ./fhtagn.awk tests.tush 事實上,這是da…

#用AWK #編寫的微型CLI #程序測試器fhtagn

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *