This is when testing in software starts to suck

  Рет қаралды 9,118

Web Dev Cody

Web Dev Cody

Күн бұрын

Become a YT Members to get extra perks!
www.youtube.co...
My Products
🏗️ WDC StarterKit: wdcstarterkit.com
📖 ProjectPlannerAI: projectplanner...
🤖 IconGeneratorAI: icongeneratora...
Useful Links
💬 Discord: / discord
🔔 Newsletter: newsletter.web...
📁 GitHub: github.com/web...
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 60
@ItsD3vil
@ItsD3vil 22 күн бұрын
Man, I found your channel two months ago, and since then, I almost never listen to any other dev content creator except you. You're so genuine, and you talk in a very reasonable way-it's not too much and not too little. Keep it up, bro!
@WebDevCody
@WebDevCody 22 күн бұрын
Thanks man glad you enjoy it
@sarabwt
@sarabwt 22 күн бұрын
Testing the frontend is way different than testing the backend. Having "unit" tests (either at the API level or business logic level, not mocking the DB) on the backend allows you to move way faster, because you don't need to verify the changes manually and you don't need to worry about regressions. I do TDD like this for 90-95% of tests. If you have a more complex business logic, then you test just that logic, but you make the function as pure as possible. As for the front end, it mostly just sucks, because the UI is fragile, especially in the beginning. Automating e2e tests for stable features makes sense, depending on how much work it is.
@andreilucasgoncalves1416
@andreilucasgoncalves1416 21 күн бұрын
It seems that no matter the framework you are using, or if you are making unit tests or e2e tests the experience of testing the frontend will always be unpleasant
@donnyroufs551
@donnyroufs551 22 күн бұрын
For side projects that I'm planning to maintain over the months / years I tend to add tests because future me will have forgotten most if not all. Professionally, based on budget and time I always try to add tests if the budget / time is limited I always try to cover the happy path on the highest level possible. You covered it pretty well!
@poznianski
@poznianski 22 күн бұрын
Brilliant and valuable perspective. It's great that this is being discussed openly
@lucaschitolina7156
@lucaschitolina7156 22 күн бұрын
she was faster, again.
@SeibertSwirl
@SeibertSwirl 22 күн бұрын
@@lucaschitolina7156 that’s what he said. 👀
@vincentpena7017
@vincentpena7017 22 күн бұрын
Man just quit. We can't win
@vpetryniak
@vpetryniak 22 күн бұрын
Who is she?
@rand0mtv660
@rand0mtv660 22 күн бұрын
Tests are this weird area that can bring so much value and benefit, but you can also still end up in this weird situation where you might require 80-90% code coverage and still have a consistently crappy software and user or developer experience. You can reach that code coverage consistently and still have software that breaks all the time, tests that break all the time etc. Just because people start writing tests for the sake of hitting coverage instead of for the sake of writing good reliable tests that make sense and tests behavior that should be tested. Testing is a tricky and hard area.
@k98killer
@k98killer 22 күн бұрын
The "value added" to "effort/time" graph would look something like a logarithm. The more interesting graph is "value added / time-and-effort" to "time-and-effort", which will roughly slope downward indicating that the value derived per unit of effort diminishes as the amount of effort increases for a feature. (Maybe something like y=x * (0.9^x) would be more accurate. Idk.)
@WebDevCody
@WebDevCody 21 күн бұрын
Honestly it’s more of a step graph. Until your test is done, you have no added value and sometimes it take a lot of time to finish the test.
@twitchizle
@twitchizle 22 күн бұрын
Love you babe
@SeibertSwirl
@SeibertSwirl 22 күн бұрын
@@twitchizle aht aht aht…. Me no share!
@yehudamakarov
@yehudamakarov 22 күн бұрын
hey really excited to watch this because this is nuanced and challenging when you really get into it
@craigpatterson167
@craigpatterson167 22 күн бұрын
Nice discussion of testing. I generally agree with your sentiments on this, though I do sometimes specifically create tests to document how vague requirements were interpreted. Very useful documentation of the implemented rules.
@pencilcheck
@pencilcheck 16 күн бұрын
you will always find some people thinking tests saved their life and you found out that they never really write tests and just bluffing
@oscarhagman8247
@oscarhagman8247 22 күн бұрын
was getting ready for a hot & spicy take but I 100% agree one thing that also sucks with the whole "we gotta test everything dogma" is when managers and product owners tell you to test shit that doesn't make sense to test. but you can't explain that to them cause they don't understand code so now you gotta do unnecessary work 😅
@yehudamakarov
@yehudamakarov 22 күн бұрын
personally i'm loving testing as a development tool to get a debugger breakpoint on the function i'm working on, one test case at a time, no backtracking that way. etc.
@Scapben
@Scapben 22 күн бұрын
I'm not a big fan of skipping tests, even on small projects-I hate manually testing my app before each deployment. That's why I always include e2e tests, even for smaller apps. If something doesn't work smoothly during testing, I don't test the use case instead of spending too much time on it. For example, I had a download button with JPEG, PNG, and PDF options. The PDF snapshot tests kept failing, even though they were correct, while the JPEG and PNG tests passed just fine. Instead of wasting time troubleshooting, I removed the PDF test and moved on. Combined with TypeScript, this approach makes me feel confident when deploying. Not sure how well it scales, though.
@letrat7021
@letrat7021 21 күн бұрын
Can you make a video about load balancing and how it’s implemented?
@darialyphia
@darialyphia 22 күн бұрын
Sees video title: "I guess I know why cody screamed at his screen at work this morning"
@WebDevCody
@WebDevCody 22 күн бұрын
one more randomly failing cypress test and I'm going to switch careers
@MartinAndrews-u7i
@MartinAndrews-u7i 20 күн бұрын
Nice video, btw what keyboard are u using
@k98killer
@k98killer 22 күн бұрын
My philosophy is to write as few tests as I can get away with while ensuring it functions properly, but you wouldn't know it by looking at my projects. For example, my tapescript project (byte code virtual machine with domain-specific assembly language) has 239 tests and 104 test vectors for the compiler and decompiler. If I made a flowchart for that one, it would look like an integrated circuit.
@Metruzanca
@Metruzanca 22 күн бұрын
Great intro, love it.
@EverydayElk
@EverydayElk 22 күн бұрын
tests are also a form of documentation
@austincodes
@austincodes 21 күн бұрын
Cody out here with the nuanced takes
@br3nto
@br3nto 11 күн бұрын
Testing is great when you want to maintain certain sets of behaviours and properties of a system. If something happens to break in a different part of the system and you don’t know about it, then you are in a situation where you have a behaviour or property that you want, but is not tested. So whack a test on it.
@TheJubeiam
@TheJubeiam 21 күн бұрын
Test your domain/buisnes logic. No matter if its 1 if or 100ifs. This will document your system. Second factor ask yourself what test should be there in CI for you to push strait to production and implement them.
@grandpowr
@grandpowr 22 күн бұрын
Could be nice if you make videos about how to test
@patolorde
@patolorde 22 күн бұрын
Idk i needed this Masterclass on testing
@mdndev2627
@mdndev2627 22 күн бұрын
16:00 Man I know that feeling. This happened to me after WEEKS of building a complex set of feature that were « crucial » only to be told that users were not using it at all… makes you want to throw hands at somebody… 😂 I remember our « proxy product owner » ( cool dude) had to deliver the news, he was acting like Steve Harvey when he made that blunder on miss universe.
@NoWorries53
@NoWorries53 22 күн бұрын
what's a good advice for an API automation tester?
@wenxuanmo5443
@wenxuanmo5443 22 күн бұрын
me: I like working with projects that have well-written tests but I don't like writing tests:) btw what's that chrome extension you're using?
@meiomi5892
@meiomi5892 19 күн бұрын
I have been trying to learn programming and have watched countless videos and learned a lot of programming languages in addition to trying to create projects but when I try to do them on my own I just don't know HOW and WHEN to use the things I have learnt in the tutorials. + when I am trying to read other people's code they look much more complicated then what I learn in those tutorials I don't know what to do any one got advice?
@juststudying1019
@juststudying1019 21 күн бұрын
test coverage is a scam, great video btw.
@vpetryniak
@vpetryniak 22 күн бұрын
Would be really good if you can make a video about good dev content creators in KZbin. I just discovered your channel recently, and if I had known earlier about your channel I would start watching you earlier.
@kal.leroux
@kal.leroux 22 күн бұрын
I just finished doing my first 2hours of test in go :D
@WebDevCody
@WebDevCody 22 күн бұрын
all to verify add(1, 2) gives you 3 amiright?
@SeibertSwirl
@SeibertSwirl 22 күн бұрын
First!!!!
@oSpam
@oSpam 22 күн бұрын
Aw man, nearly got there
@klapaucius515
@klapaucius515 22 күн бұрын
No fair, she knows beforehand 😣🤣🤣🤣
@WebDevCody
@WebDevCody 22 күн бұрын
thanks babe!
@anothermouth7077
@anothermouth7077 22 күн бұрын
Babe ! You are doing great babe !
@SeibertSwirl
@SeibertSwirl 22 күн бұрын
@@klapaucius515 hahaha insider trading at its finest. #nepotism
@ifeoraokechukwu1346
@ifeoraokechukwu1346 21 күн бұрын
I want to commend you very much for this video. Everything you said for when testing is great is spot on (except for the diminishing returns part which is debatable). However, your first point for when testing sucks is a skill issue which can be fixed by the developer. Giving up testing because tests are brittle defeats you earlier point about testing key business-crucial features. So, build on and fix your your skill issues. Cheers
@oryankibandi3556
@oryankibandi3556 22 күн бұрын
Good video.
@KrzysztofBaczkiewicz-sc4lh
@KrzysztofBaczkiewicz-sc4lh 22 күн бұрын
testing in js sucks but when it does not (Laravel) it's hard not to test
@averagejoe5822
@averagejoe5822 22 күн бұрын
lol. that intro
@damjandjordjevic1994
@damjandjordjevic1994 22 күн бұрын
What's a youtube view quota?
@WebDevCody
@WebDevCody 22 күн бұрын
Just need my wife to comment and I’m good
@SeibertSwirl
@SeibertSwirl 22 күн бұрын
@@WebDevCody ngawwwwww 😩😘
@pavelsadovoi6698
@pavelsadovoi6698 22 күн бұрын
Testing is also great when you want increase estimates to earn more money as developer.
@subproject2771
@subproject2771 22 күн бұрын
Testing is wasting.
@-lumqua-827
@-lumqua-827 22 күн бұрын
Lovely jublee, I will never test anything
The proper way to secure your databases
14:11
Web Dev Cody
Рет қаралды 20 М.
Why I Don't Like Singletons
29:05
The Cherno
Рет қаралды 60 М.
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 698 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 43 МЛН
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,4 МЛН
AWS CEO - The End Of Programmers Is Near
28:08
ThePrimeTime
Рет қаралды 449 М.
Someone improved my code by 40,832,277,770%
28:47
Stand-up Maths
Рет қаралды 2,5 МЛН
I Went To DEFCON!
16:25
ThePrimeagen
Рет қаралды 192 М.
Introducing Raspberry, an Open Source attempt to recreate Strawberry
29:12
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Linus On LLMs For Coding
17:06
ThePrimeTime
Рет қаралды 251 М.
Setting up a production ready VPS is a lot easier than I thought.
29:50
Agile doesn't suck, you're just bad at it
19:26
Web Dev Cody
Рет қаралды 8 М.
Do this before you deploy to Vercel
20:28
Web Dev Cody
Рет қаралды 24 М.
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 698 М.