I automated integration testing... Here's how

  Рет қаралды 8,606

Charm CLI

Charm CLI

Күн бұрын

Пікірлер: 22
@totallynotvme
@totallynotvme Жыл бұрын
Love the work you guys do! Makes working with the terminal so much better and nicer to look at
@asdasddas100
@asdasddas100 Жыл бұрын
Wait this is actually sick
@anasouardini
@anasouardini 8 ай бұрын
How dare you guys be this cool!
@LimitedWard
@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
@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
@nskazki Жыл бұрын
@@charmcli Why “golden” though? Is it a reference I don’t understand?
@avi7278
@avi7278 11 ай бұрын
@@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
@Zonkin Жыл бұрын
Seems most relevant for CLIs, but pretty amazing for those…
@gabrieljose7041
@gabrieljose7041 Жыл бұрын
This is really awesome
@neoplumes
@neoplumes Жыл бұрын
Huh. I just released a cli testing tool. But this is so much better in every way
@couffin
@couffin Жыл бұрын
That realy cute! I wondering if you can do some ci integration examples
@charmcli
@charmcli Жыл бұрын
Absolutely, can follow up with some examples!
@avncdevops6013
@avncdevops6013 7 ай бұрын
bro that bashbunni name is kinda amazing
@charmcli
@charmcli 6 ай бұрын
Thank you!
@KyleThompson228
@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
@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
@KyleThompson228 Жыл бұрын
@@charmcli you're breaking my heart but okay lol.
@TaiGroot
@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?
@charmcli
@charmcli Жыл бұрын
Will check and loop back!
@艾曦-e4g
@艾曦-e4g Жыл бұрын
Cool!
@kodder
@kodder Жыл бұрын
Cool
The Best Way To Use Docker For Integration Testing In .NET
19:34
Milan Jovanović
Рет қаралды 39 М.
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 106 М.
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Behind the scenes: how to build popular open source software
16:58
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 243 М.
You WILL glamourize your CLI
7:35
Charm CLI
Рет қаралды 27 М.
The only Integration Testing video you need to watch
21:42
Software Developer Diaries
Рет қаралды 2,6 М.
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 98 М.
ASP.NET Core Integration Testing Tutorial
24:35
Julio Casal
Рет қаралды 30 М.
Automate GIF Creation with Charm VHS
8:07
Charm CLI
Рет қаралды 9 М.
These 7 Coding Skills Give You an UNFAIR Advantage
7:55
Tech With Tim
Рет қаралды 514 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 88 М.
What is automated testing? Beginner intro & automation demo
15:47
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН