Should You Test As A Web Developer?

  Рет қаралды 27,831

Traversy Media

Traversy Media

Күн бұрын

A chat about writing tests as a web developer. I talk about what testing is, the benefits, types of testing, and when and if you should write tests for your projects.
Check out my premium courses:
traversymedia.com
Jest Crash Course:
• Jest Crash Course - Un...
React Testing Course:
• Jest Crash Course - Un...
TDD Course:
• Intro To JavaScript Un...
Timestamps:
0:00 - Intro
0:54 - What Is Testing?
1:56 - TDD (Test Driven Development)
3:19 - Types Of Testing
5:28 - When Should You Write Tests?
Social Media:
Github - github.com/bradtraversy
Twitter - / traversymedia
Instagram - / traversymedia
Facebook - / traversymedia
Linkedin - / bradtraversy

Пікірлер: 98
@TraversyMedia
@TraversyMedia 4 ай бұрын
I know the text description is wrong for unit testing. I didn't realize until after upload. Sorry about that. What is your opinion on testing? What do you agree/disagree with?
@sujalkhatiwada2267
@sujalkhatiwada2267 4 ай бұрын
One request, A Custom Framework with API Development and testing API using PHP would be helpful.
@vigneshk-sv5ju
@vigneshk-sv5ju 4 ай бұрын
I agreed with testing and I'm interested to learn testing in js.
@soumiarouba2729
@soumiarouba2729 4 ай бұрын
hi sir i want please to ask you about something i have 33years old i lost my job in 2020 from this years and now we are in 2023 i didnt find job so i thinking to change my career and my life and i love programming and they say to me age is problem to be frontend developer in this age and to find job like freelance or in another country is not easy is this true please say to me the true
@expresscoding3525
@expresscoding3525 4 ай бұрын
@@soumiarouba2729 It's not complex thing, you can still learn and get a job, so, don't be sad about it. you can start HTML and CSS from this channel's. playlist too 'HTML and CSS', where you can start watching from first video, learn 10-15 minutes of content of video, and practice it until you get comfortable with concepts taught in the video, then in the next day, revise what you've learned previous day and move. ahead with next 10-15 minutes of content.
@davidmares6053
@davidmares6053 4 ай бұрын
testing is also a type of documentation ;) but the problem is if the project you are working on is already a monster with tight deadlines, so testing becomes really not worth it because you know this thing is not well designed but just mantained and basically needs to be redone
@AmanNidhi
@AmanNidhi 4 ай бұрын
all those developer he taught for free over these years on KZbin , they(me included) are now old enough to realise that testing was the most important part of development. People now prioritise mental peace after production deployment than learning new tech stacks. Thanks.... I developed my first server application at my work by watching your tutorials.
@joaohertelsantiago1158
@joaohertelsantiago1158 4 ай бұрын
Great video Brad. And thanks for doing the annual guide. I fully heared the 2023 annual guide 20+ times while driving and its sooooooo good. Great Job, Please keep it up.
@pratikshrestha1026
@pratikshrestha1026 4 ай бұрын
I am Laravel developer and use Cypress for frontend and Pest test for backend. I must say, you will find it difficult initially but it is lot better practice in longer term
@shafiullahsyed4255
@shafiullahsyed4255 4 ай бұрын
One of the best instructor on KZbin ❤️💙
@toptiertcg5889
@toptiertcg5889 Ай бұрын
@TraversyMedia Keep up the good work bro. Your courses and the way you teach things has given me alot of inspiration to keep moving forward with a career in web development.
@NNNedlog
@NNNedlog 4 ай бұрын
Thanks a lot for this video sir. Recently I've been reading more on Jest for testing my web applications. I really appreciate the insights put into this video. By the way, I've learnt a lot from your channel. Thanks sir
@javascriptes
@javascriptes 4 ай бұрын
I've always love Brad honesty
@amirMahmed
@amirMahmed 4 ай бұрын
Your great fan and student here from Ethiopia 🇪🇹. God bless you ❤
@charliefulton7304
@charliefulton7304 3 ай бұрын
great topic sir, thanks for all of your amazing content. Also looks like you have been working out, grats on that too! :)
@coder5336
@coder5336 4 ай бұрын
Good to see you man
@mtq2527
@mtq2527 4 ай бұрын
Brad, can't wait for your Laravel course!
@mmelimahlobo7656
@mmelimahlobo7656 2 ай бұрын
Thanks Brad
@njox1635
@njox1635 4 ай бұрын
Thanks for this video, yesterday we had a conversation with my friend about testing but one of the things he advised me is that know how to code first then dive into test. Testing is important when you are collaborating and you want to push your product (code).
@NathenW
@NathenW 4 ай бұрын
Playwright with a BDD style approach to developing user stories has been a phenomenal experience for me, but I'm an SDET by trade so this comes naturally to me.
@cyb3rjunky609
@cyb3rjunky609 4 ай бұрын
just the video i needed
@frankperullo
@frankperullo 4 ай бұрын
Have you ever thought about hosting a meetup? I feel like whoever would go to that would be the exact devs I'd like to meet
@realchrishawkes
@realchrishawkes 4 ай бұрын
I've tested a ton in my career, for most of my side projects, I don't do any testing at all except spot testing e2e stuff. Testing is the most tedious, boring part of our career. It's never straight forward, but it's hugely important for real money making operations.
@frontend_joe
@frontend_joe 4 ай бұрын
@realchrishawkes I am intrested in getting few helpful details about testing from your earn, Thanks in advance.
@t1m9mofficial
@t1m9mofficial 2 ай бұрын
You are an awesome person!
@wandersonhelmer1810
@wandersonhelmer1810 4 ай бұрын
Hey Brad! I love your courses man! I know this might be very newbie stuff, but have you ever considered doing a crash course on programming logic or even further the topic with computational thinking? I'm coursing your HTML & CSS on Udemy and I love your teaching approach. Bye.
@Chandasouk
@Chandasouk 4 ай бұрын
We write tests for our backend. There are some for our frontends too but not as extensive. More like if a component was found and whatnot.
@RayBit1979
@RayBit1979 4 ай бұрын
Should we call it Personal Home Page or Pre Hypertext Processor?
@unkouwnfigure2746
@unkouwnfigure2746 3 ай бұрын
I haven't watched your videos since a year or so, YOU'VE LOST SOME WEIGHT BRO!! Congrats!
@pereerecodes
@pereerecodes 4 ай бұрын
@TraversyMedia What kind of microphone do you use?
@dracsharp
@dracsharp 4 ай бұрын
If you would repeatedly manually test something, and you can write a good test for it, then it makes sense to automate. Technically, there is nothing wrong with tests, but for my own project it's like 98% coding, and 2% comments and tests. Typescript also reduces the value proposition of tests. This all said, testing is better than it used to be because AI is good at writing tests, so you usually get them for free.
@HyperionStudiosDE
@HyperionStudiosDE 4 ай бұрын
It depends on how much damage a faulty build can cause. I don't write tests at all for personal projects because nobody cares if something breaks. But for my job when there are real dollars at stake it's a different question.
@adambickford8720
@adambickford8720 4 ай бұрын
TS and AI mean no testing? My future is secure.
@Spookyhoobster
@Spookyhoobster 4 ай бұрын
Typescript reduces the value you get from tests... Funny how strict type systems exists in many other programming languages, and testing still seems to be highly valued by teams that use those languages. Tests serve primarily as another ecosystem for code validation. Similar to how a lab might serve as an environment to validate changes to existing manufacturing processes. No type system replaces or reduces the value of testing.
@Pavel-on-youtube
@Pavel-on-youtube 4 ай бұрын
🔥
@HyperionStudiosDE
@HyperionStudiosDE 4 ай бұрын
Testing it important, not so much for the new code that you're introducing but to ensure that existing code is still working as expected. I don't use TDD, though. I don't think it's viable unless your requirements are very clear which is just not the case in many projects. Often you have to iterate a couple of times before you arrive at the desired result. Of course you have to be pragmatic about the scope of your tests. You don't need 100% test coverage.
@SLRModShop
@SLRModShop 4 ай бұрын
"not so much for the new code that you're introducing but to ensure that existing code is still working as expected" absolutely! I would have created prod fires if not for specs failing on me. I hate writing them, but if I still have a job and colleagues that can tolerate my existence, it's thanks to them!
@leojohn6702
@leojohn6702 4 ай бұрын
Do you have any courses especially for mocking functions? Is verry hard to understand in my oppinion
@jamessullenriot
@jamessullenriot 4 ай бұрын
E2E manual tests after pushing to prod to make sure things still work is 10000% more valuable than unit testing. So many teams I see pushing code and assuming "tests are all automated so we are good" ... then a few minutes/hours later, pager duty alerts flying wild. Now there are 8 people on a call trying to figure out "why"
@avwie132
@avwie132 4 ай бұрын
E2E manual testing does not scale at all. And your argument also holds for E2E manual tests.
@krumbergify
@krumbergify 4 ай бұрын
It’s not either or, you need both. E2e tests primarily tell you THAT something is wrong but unit tests also tell you WHAT is wrong. I’m not so much a fan of integration tests though, they tend to be quite flaky and break easily during refactoring
@jamessullenriot
@jamessullenriot 4 ай бұрын
@@avwie132 Stop being a tech bro. They scale fine for 99% of apps inside companies. Show me an app that you can't take a few minutes post launch to go through and check out?
@jamessullenriot
@jamessullenriot 4 ай бұрын
@@krumbergify Unit tests tell you Potentially what is wrong in a given unit of code. That is all. Does nothing for the app as a whole and what the user sees.
@avwie132
@avwie132 4 ай бұрын
@@jamessullenriota few mins? We have web apps with user business processes that can take up to a few hours to complete with: signing of contracts, payments, identification, communication with multiple external agencies. And that is only one of the features. How would I test that in a few mins? With scale I mean: if you add features to your product your E2E manual regression testing scales linearly. Unless everything remains stable (which it doesn’t because of library upgrades) it is difficult to remove manual tests. And you mention “post launch”. So you test in production? Mate… What kind of role do you have that you see “so many teams”?
@jeromealtariba7339
@jeromealtariba7339 4 ай бұрын
thks for your vids sir. I would add one important point to consider before starting tests or TDD : cost. Doing tests it costs a lot. So it is often the first part of the project to be reduce to save costs
@lardosian
@lardosian 4 ай бұрын
Unit Tests, Functional Tests and Performance testing taken very seriously in my backend position.
@ConwayCreator
@ConwayCreator 4 ай бұрын
Can a developer use testing inside a version control platform??
@xXHelsingGamingXx
@xXHelsingGamingXx 4 ай бұрын
My Favourite teacher or whaaat???? 🙂
@BruceMcGivern
@BruceMcGivern 4 ай бұрын
The Time-Factor might be the most controversial thing. It only seems logical, that you're faster not writing tests, but there comes a tipping point where the technical debt catches up. And, from my experience, introducing testing afterwards is practically impossible. That's when your time is suddenly at least 70% Bug fixing and praying your fixes don't produce new horrors. But I can't tell you at which project size that tipping point occurs exactly. It just some sort of six sense you develop over the years as a dev
@vigneshk-sv5ju
@vigneshk-sv5ju 4 ай бұрын
Hi brother love from India ❤
@donovan8031
@donovan8031 4 ай бұрын
I see new video from Traversy Media, I like the video immediately. 👍
@faintsignal
@faintsignal 4 ай бұрын
Aspire to be more than a like-bot.
@waleedsharif618
@waleedsharif618 4 ай бұрын
One question: as a Reactjs front end developer should i only do unit testing using react testing library or should i test also integration testing and e2e testing ?
@owaisahmed7820
@owaisahmed7820 4 ай бұрын
e2e is recommended
@618Developer
@618Developer 3 ай бұрын
While short, your summary of TDD is exactly why we have this tab vs spaces culture around it. Your summary leads everyone to believe all TDD is, is just a chicken and the egg type thing. Write the test first or the production code first, you end up at the same destination. This is flat out wrong. True TDD practitioners know that TDD is more about better software design, among many other things than come from it. Before anyone @ me, go pick up Kent Beck’s book. Pick up Uncle Bob’s Clean Craftsmanship. Work through them and then actually commit to the practice for 30 straight working days. After that, @ me all you want. I’d love to have a conversation, especially for those that still think TDD isn’t necessary or over hyped. Maybe I’ll learn something and gain a different view. Maybe they’ll learn what they thought was TDD wasn’t really TDD and they were lying to themselves. Either way, we’re gonna find out something and learn. Green and growing.
@yogeshkad6928
@yogeshkad6928 4 ай бұрын
Hello sar thanks to make this video but I would like to tell you one more important aspect of testing which is accessibility testing accessibility testing is make sure your product accessible with assistive devices for person with disability without accessibility person with disability face many problem to access product I think you are a responsible and respect to person on KZbin please mention in your videos about accessibility I am accessibility tester thank you if we will not provide accessibility then we don't get like Stephen hawkings
@Ali-aljabri
@Ali-aljabri 4 ай бұрын
Do not feel a little frustrated because of AI, which may be able to perform the programmer's job in the future! This is my feeling and I don't know if I am thinking true or just imagining
@atouchofa.d.d.5852
@atouchofa.d.d.5852 4 ай бұрын
Looking healthy dude
@WalkerDestroyer
@WalkerDestroyer 4 ай бұрын
Oh the accent comes out when he says "shopping cARt"
@mantikhatasi
@mantikhatasi 4 ай бұрын
if its workings its working if its not its not
@SLRModShop
@SLRModShop 4 ай бұрын
Can you send a resume to my company... so we can blacklist you?
@owaisahmed7820
@owaisahmed7820 4 ай бұрын
Testing application in multiple ways in different environment is necessary. If things working for you do not meant it would expect to work for others
@mantikhatasi
@mantikhatasi 4 ай бұрын
@@owaisahmed7820 there was testing class in my degree program. 8 people signed but 10 people needed to open the class. nobody cared. nobody needs it.
@steveymcneckbeard
@steveymcneckbeard 3 ай бұрын
​@@SLRModShop😂 can you send us your company name so we can avoid your fragile environment.
@awaisraza2285
@awaisraza2285 4 ай бұрын
Wow Brad your arms are growing MASHALLAH
@MachinesTakingOverTheWorld
@MachinesTakingOverTheWorld 3 ай бұрын
gotta test puppeteer with selenium hahaha
@MachinesTakingOverTheWorld
@MachinesTakingOverTheWorld 3 ай бұрын
no, this automation library called puppeteer is hard to test; manually it takes ages because some automation is complex; need to split that code and make it testaable
@justinfulton5692
@justinfulton5692 4 ай бұрын
I wish more people would discuss BDD over TDD. It's better and more viable. TDD is too loose and open handed. You're attempting to paint yourself into a corner before knowing if you're even in a room.
@codeitraw5241
@codeitraw5241 4 ай бұрын
You lost a good amount of weight. It’s good to see you are taking care of yourself.
@vasylms2459
@vasylms2459 4 ай бұрын
No rest only test
@steveymcneckbeard
@steveymcneckbeard 3 ай бұрын
Sounds like a bodybuilding mantra
@LongJourneys
@LongJourneys 4 ай бұрын
Im the only developer for a small company and after 4 years I have yet to write a test for anything.....😂
@psyick9543
@psyick9543 4 ай бұрын
I hate the idea of TDD. I always do it after. Generally I would say just develop quickly and get the functionality working and it will quickly become apparent which areas need testing to ensure reliability etc
@planesrift
@planesrift 4 ай бұрын
Most of the time it's not even a choice, but a requirement.
@biswabaral949
@biswabaral949 Ай бұрын
me writing codes with 0 test my my last 3 projects lol
@misterFriend.
@misterFriend. 3 ай бұрын
Gotta love this guy's theme sounds like it's saying, "I am very smart but I talk very monotone". Haha, ok I'll stop.
@BigFattyNat
@BigFattyNat 4 ай бұрын
definitely test, atleast 250mg a week. as for software testing hell naw bruh that shts gay af
@michaelthomashamilton
@michaelthomashamilton 4 ай бұрын
Have you lost weight? Looking good, Brad.
@dave1790
@dave1790 4 ай бұрын
First thing I thought too
@danielfernandez7829
@danielfernandez7829 4 ай бұрын
I hadn't seen a video from you for a while. You've lost weight, right?
@adobezgaca
@adobezgaca 4 ай бұрын
Damn, you seem to have lost alot of weight
@richmondmbao1168
@richmondmbao1168 4 ай бұрын
Bro you've lost weight
@SohailKhan-tc8uz
@SohailKhan-tc8uz 4 ай бұрын
First
@farhangfx247
@farhangfx247 4 ай бұрын
You have lose weight. Good to see you
Build Strength From Struggle | My Story
9:20
Traversy Media
Рет қаралды 205 М.
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 83 М.
Não pode Comprar Tudo 5
00:29
DUDU e CAROL
Рет қаралды 78 МЛН
Barriga de grávida aconchegante? 🤔💡
00:10
Polar em português
Рет қаралды 6 МЛН
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 18 МЛН
How Web Freelancers Make $400 to $500 hr!
11:24
Stefan Mischook
Рет қаралды 72 М.
Welcome To My World | 2021 Home Office Tour
21:40
Traversy Media
Рет қаралды 127 М.
How To Actually Get Hired In 2024
10:43
Web Dev Simplified
Рет қаралды 183 М.
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 123 М.
I Left Software. A Cautionary Story About Burnout
18:38
Created By KC
Рет қаралды 244 М.
React Testing Crash Course
58:36
Traversy Media
Рет қаралды 310 М.
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 60 М.
15 Web Developer-Related Career Paths
25:19
Traversy Media
Рет қаралды 121 М.
Escape Tutorial Hell & Utilize Them In A Better Way
12:20
Traversy Media
Рет қаралды 219 М.
Big Tech AI Is A Lie
16:56
Tina Huang
Рет қаралды 54 М.
Start from 0 at any point on the T1 Digital Tape Measure
0:14
REEKON Tools
Рет қаралды 23 МЛН
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Рет қаралды 1,8 МЛН
Samsung or iPhone
0:19
rishton_vines😇
Рет қаралды 379 М.
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 12 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43