Should You Test As A Web Developer?

Поделиться
HTML-код
  • Опубликовано: 25 июн 2024
  • 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
  • НаукаНаука

Комментарии • 99

  • @TraversyMedia
    @TraversyMedia  6 месяцев назад +27

    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 6 месяцев назад +1

      One request, A Custom Framework with API Development and testing API using PHP would be helpful.

    • @vigneshk-sv5ju
      @vigneshk-sv5ju 6 месяцев назад

      I agreed with testing and I'm interested to learn testing in js.

    • @soumiarouba2729
      @soumiarouba2729 6 месяцев назад +1

      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 6 месяцев назад

      @@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 6 месяцев назад

      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 5 месяцев назад +13

    all those developer he taught for free over these years on RUclips , 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 6 месяцев назад +2

    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.

  • @shafiullahsyed4255
    @shafiullahsyed4255 6 месяцев назад +12

    One of the best instructor on RUclips ❤️💙

  • @pratikshrestha1026
    @pratikshrestha1026 6 месяцев назад +12

    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

  • @realchrishawkes
    @realchrishawkes 5 месяцев назад +2

    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.

    • @codewithfullstackjoe
      @codewithfullstackjoe 5 месяцев назад

      @realchrishawkes I am intrested in getting few helpful details about testing from your earn, Thanks in advance.

  • @toptiertcg5889
    @toptiertcg5889 2 месяца назад

    @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.

  • @javascriptes
    @javascriptes 6 месяцев назад +1

    I've always love Brad honesty

  • @NNNedlog
    @NNNedlog 6 месяцев назад +1

    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

  • @coder5336
    @coder5336 6 месяцев назад

    Good to see you man

  • @amirMahmed
    @amirMahmed 6 месяцев назад

    Your great fan and student here from Ethiopia 🇪🇹. God bless you ❤

  • @charliefulton7304
    @charliefulton7304 4 месяца назад

    great topic sir, thanks for all of your amazing content. Also looks like you have been working out, grats on that too! :)

  • @mtq2527
    @mtq2527 6 месяцев назад

    Brad, can't wait for your Laravel course!

  • @frankperullo
    @frankperullo 6 месяцев назад +3

    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

  • @mmelimahlobo7656
    @mmelimahlobo7656 4 месяца назад

    Thanks Brad

  • @NathenW
    @NathenW 6 месяцев назад

    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.

  • @njox1635
    @njox1635 6 месяцев назад +2

    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).

  • @T1m9m
    @T1m9m 3 месяца назад

    You are an awesome person!

  • @cyb3rjunky609
    @cyb3rjunky609 5 месяцев назад

    just the video i needed

  • @wandersonhelmer1810
    @wandersonhelmer1810 5 месяцев назад

    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.

  • @unkouwnfigure2746
    @unkouwnfigure2746 5 месяцев назад

    I haven't watched your videos since a year or so, YOU'VE LOST SOME WEIGHT BRO!! Congrats!

  • @Chandasouk
    @Chandasouk 6 месяцев назад

    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 6 месяцев назад +1

    Should we call it Personal Home Page or Pre Hypertext Processor?

  • @diabeticnomad
    @diabeticnomad 27 дней назад

    you going to do more videos on this? specifically php unit testing

  • @618Developer
    @618Developer 5 месяцев назад

    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.

  • @pereerecodes
    @pereerecodes 5 месяцев назад

    @TraversyMedia What kind of microphone do you use?

  • @donovan8031
    @donovan8031 6 месяцев назад +5

    I see new video from Traversy Media, I like the video immediately. 👍

    • @faintsignal
      @faintsignal 6 месяцев назад

      Aspire to be more than a like-bot.

  • @lardosian
    @lardosian 6 месяцев назад

    Unit Tests, Functional Tests and Performance testing taken very seriously in my backend position.

  • @dracsharp
    @dracsharp 6 месяцев назад +12

    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 6 месяцев назад +1

      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 6 месяцев назад +1

      TS and AI mean no testing?
      My future is secure.

    • @Spookyhoobster
      @Spookyhoobster 5 месяцев назад

      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.

  • @jamessullenriot
    @jamessullenriot 6 месяцев назад +2

    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 6 месяцев назад

      E2E manual testing does not scale at all. And your argument also holds for E2E manual tests.

    • @krumbergify
      @krumbergify 6 месяцев назад

      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 6 месяцев назад

      @@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 6 месяцев назад

      @@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 6 месяцев назад

      @@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”?

  • @leojohn6702
    @leojohn6702 5 месяцев назад

    Do you have any courses especially for mocking functions? Is verry hard to understand in my oppinion

  • @ConwayCreator
    @ConwayCreator 6 месяцев назад

    Can a developer use testing inside a version control platform??

  • @xXHelsingGamingXx
    @xXHelsingGamingXx 6 месяцев назад

    My Favourite teacher or whaaat???? 🙂

  • @vigneshk-sv5ju
    @vigneshk-sv5ju 6 месяцев назад +1

    Hi brother love from India ❤

  • @BruceMcGivern
    @BruceMcGivern 5 месяцев назад

    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

  • @HyperionStudiosDE
    @HyperionStudiosDE 6 месяцев назад +6

    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 6 месяцев назад +1

      "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!

  • @jeromealtariba7339
    @jeromealtariba7339 6 месяцев назад

    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

  • @waleedsharif618
    @waleedsharif618 6 месяцев назад

    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 ?

  • @Pavel-on-youtube
    @Pavel-on-youtube 6 месяцев назад

    🔥

  • @mantikhatasi
    @mantikhatasi 6 месяцев назад +4

    if its workings its working if its not its not

    • @SLRModShop
      @SLRModShop 6 месяцев назад +2

      Can you send a resume to my company... so we can blacklist you?

    • @owaisahmed7820
      @owaisahmed7820 5 месяцев назад

      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 5 месяцев назад

      @@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 5 месяцев назад

      ​@@SLRModShop😂 can you send us your company name so we can avoid your fragile environment.

  • @Ali-aljabri
    @Ali-aljabri 6 месяцев назад

    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

  • @yogeshkad6928
    @yogeshkad6928 6 месяцев назад

    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 RUclips 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

  • @atouchofa.d.d.5852
    @atouchofa.d.d.5852 6 месяцев назад

    Looking healthy dude

  • @awaisraza2285
    @awaisraza2285 6 месяцев назад

    Wow Brad your arms are growing MASHALLAH

  • @WalkerDestroyer
    @WalkerDestroyer 6 месяцев назад +1

    Oh the accent comes out when he says "shopping cARt"

  • @codeitraw5241
    @codeitraw5241 5 месяцев назад

    You lost a good amount of weight. It’s good to see you are taking care of yourself.

  • @justinfulton5692
    @justinfulton5692 6 месяцев назад +1

    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.

  • @vasylms2459
    @vasylms2459 6 месяцев назад +2

    No rest only test

  • @MachinesTakingOverTheWorld
    @MachinesTakingOverTheWorld 5 месяцев назад

    gotta test puppeteer with selenium hahaha

    • @MachinesTakingOverTheWorld
      @MachinesTakingOverTheWorld 5 месяцев назад

      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

  • @LongJourneys
    @LongJourneys 5 месяцев назад

    Im the only developer for a small company and after 4 years I have yet to write a test for anything.....😂

  • @planesrift
    @planesrift 5 месяцев назад

    Most of the time it's not even a choice, but a requirement.

  • @psyick9543
    @psyick9543 6 месяцев назад

    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

  • @biswabaral949
    @biswabaral949 2 месяца назад

    me writing codes with 0 test my my last 3 projects lol

  • @michaelthomashamilton
    @michaelthomashamilton 6 месяцев назад

    Have you lost weight? Looking good, Brad.

    • @dave1790
      @dave1790 6 месяцев назад +1

      First thing I thought too

  • @misterFriend.
    @misterFriend. 5 месяцев назад

    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 5 месяцев назад +1

    definitely test, atleast 250mg a week. as for software testing hell naw bruh that shts gay af

  • @danielfernandez7829
    @danielfernandez7829 5 месяцев назад

    I hadn't seen a video from you for a while. You've lost weight, right?

  • @adobezgaca
    @adobezgaca 6 месяцев назад +2

    Damn, you seem to have lost alot of weight

  • @farhangfx247
    @farhangfx247 5 месяцев назад

    You have lose weight. Good to see you

  • @richmondmbao1168
    @richmondmbao1168 6 месяцев назад

    Bro you've lost weight

  • @SohailKhan-tc8uz
    @SohailKhan-tc8uz 6 месяцев назад

    First