Love the work you guys do! Makes working with the terminal so much better and nicer to look at
@asdasddas100 Жыл бұрын
Wait this is actually sick
@anasouardini8 ай бұрын
How dare you guys be this cool!
@LimitedWard Жыл бұрын
I can see the gif feature being really useful, but I'd hesitate to use this for integration testing. It feels like that would just produce very brittle tests that fail whenever some basic output changes, even if it's doing the right thing. But maybe I'm misunderstanding how it works.
@charmcli Жыл бұрын
The integration tests can work with your golden file, so the CI will fail if there are unexpected changes to any of the TUI "screens" given the directives in the .tape file. At the end of the day, it's just comparing string outputs to make sure the expected and actual results match, just like any other tests. It would allow you to test your TUIs. Hope that helps to clarify
@nskazki Жыл бұрын
@@charmcli Why “golden” though? Is it a reference I don’t understand?
@avi727811 ай бұрын
@@nskazki test that compare current output vs previous output (in whatever format: text, image, etc) are typically referred to as "goldens". Not sure of the actual origin. Maybe a good question for chat gpt.
@Zonkin Жыл бұрын
Seems most relevant for CLIs, but pretty amazing for those…
@gabrieljose7041 Жыл бұрын
This is really awesome
@neoplumes Жыл бұрын
Huh. I just released a cli testing tool. But this is so much better in every way
@couffin Жыл бұрын
That realy cute! I wondering if you can do some ci integration examples
@charmcli Жыл бұрын
Absolutely, can follow up with some examples!
@avncdevops60137 ай бұрын
bro that bashbunni name is kinda amazing
@charmcli6 ай бұрын
Thank you!
@KyleThompson228 Жыл бұрын
Are charm libraries only available in Go? some of my rust side projects could really benefit but it doesn't seem available to me.
@charmcli Жыл бұрын
The libraries are only Go, the apps (including VHS) are just terminal apps that you can run anywhere. Gum (interactive UI elements) has some examples with Ruby and Python I think? You could use that with Rust if it’s what you’re looking for. Melt, Wishlist, Soft serve, Gum, Glow, Skate, VHS (I’m probably forgetting some)… are all apps we’ve built with our libs. Last year someone was working on something called Rustea that was Bubble Tea in Rust. Not sure the state of it now though
@KyleThompson228 Жыл бұрын
@@charmcli you're breaking my heart but okay lol.
@TaiGroot Жыл бұрын
The golden output feature is a nice addition! I hadn't considered using it for CI but that's a nice idea for UI testing. How does tape handle recording for terminals with different coloring features? For example, if my UI tests revolve around making sure I show 'safe' (viewable) output for every type of terminal color support, and VHS always records in color (since it brings its own terminal)? Is there a way to tell VHS to set TERM variables and use different terminal color support for termenv/bubbletea? Or does the user have to set shell variables themselves?