purebred-mua / tasty-tmux

Terminal user acceptance testing via tmux
GNU Affero General Public License v3.0
6 stars 0 forks source link

simplify assertions on captures #3

Closed frasertweedale closed 5 years ago

frasertweedale commented 5 years ago

A common pattern is:

out <- sendKeys "Enter" (Literal "This is a test mail for purebred")

assertSubstrInOutput "From: <roman@host.example>" out               
assertSubstrInOutput "To: <frase@host.example>" out                 
assertSubstrInOutput ("Subject: " <> subject) out                   

Instead it might be nicer to "store" a capture in a state, and have assertion functions that check the stored capture.

frasertweedale commented 5 years ago

Ahaha oh man, really? GitHub closed this issue when a commit in a whole other repo referenced it. I wonder if that only work within a single org... or if it's across the board :O