Things I Wish I Knew When I Started Testing Spring Boot Applications by Philip Riecks

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ต.ค. 2022
  • Getting started with Spring Boot and its auto-configuration mechanism can be a hurdle for new developers.
    Once you get your first Spring Boot application up- and running, writing tests for it is the last thing you care about. You’re happy that your code does its job.
    However, as soon as you try to integrate your changes, you face a pull request rejection because your lead developer reminds you that tests are missing.
    Testing is an integral part of software development, and unfortunately, some teams treat this topic neglectfully. That’s bad for the future maintenance and overall health of their project. Fortunately, both Spring Test and Spring Boot offer excellent support for testing your application.
    This talk will give you an overview of best practices, pitfalls, and recipes for testing Spring Boot applications. Simply put, with this talk, I’ll share the things that I wish I had known when I started testing Spring Boot applications.
    PHILIP RIECKS
    Philip is an independent software consultant with over seven years of professional experience. Apart from his freelance work, he's running a blog and a TH-cam channel to educate Java developers about #SpringBoot, #AWS, #Testing under the slogan Testing Java Applications Made Simple. Philip is convinced that testing can be joyful once you know the how. Besides that, he's one of the authors of Stratospheric - From Zero to Production with Spring Boot and AWS.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 22

  • @Strannik20111
    @Strannik20111 ปีที่แล้ว +24

    The description states that "This talk will give you an overview of best practices, pitfalls, and recipes for testing Spring Boot applications". But better name for this talk is "Introduction into Spring Boot Testing". So it just gives basic things from reference documentation of Spring Boot Test without any "best practices" and "pitfalls". I guess the main idea of this talk is the last slide where speaker advertises his own master-class.

    • @rieckpil
      @rieckpil ปีที่แล้ว +11

      With this talk, I tried to introduce Spring Boot testing for Spring Boot newcomers (0/1/2 years of experience). I haven't seen many conference talks focussing on things that help new developers quickly get up-to-speed with things. Indeed, most of this stuff can also be found in the docs. But who reads the docs 🤪?
      Naming it "Introduction into Spring Boot Testing" would have sounded too boring, IMHO.
      The advertisement on the last page is what helps me sponsor this trip, compensate for the time, pay the hotel and the flight as the conference organizers didn't cover it :(

    • @tobyzieglerrr
      @tobyzieglerrr ปีที่แล้ว +5

      The title clearly states what to expect, you are reading too much into it. Let's be gentle to each other and be thankful.

    • @kappaj01
      @kappaj01 3 หลายเดือนก่อน +1

      One of the best course to buy. Money well worth spending. Still one of my reference sources of information daily.

  • @pawelk7302
    @pawelk7302 ปีที่แล้ว +6

    It is a great introduction for testing with Spring and can say that as a Junior developer I have learned a trick or two! Thanks a lot for preparing this talk.

  • @nicovanbelle1751
    @nicovanbelle1751 ปีที่แล้ว +12

    Great introduction into Spring Boot testing. All things mentioned here are part of the official 4-day Spring Core and Spring Boot course

    • @rieckpil
      @rieckpil ปีที่แล้ว +4

      Oh nice, I wasn't aware that I just summarized the official Spring courses 😅

    • @hariharanramakrishnan3220
      @hariharanramakrishnan3220 ปีที่แล้ว +5

      Where is the full course link

  • @edekara
    @edekara ปีที่แล้ว +3

    Gold Nugget for Spring Testing Lovers

  • @zenitchik2010
    @zenitchik2010 ปีที่แล้ว +3

    Thanks bro! Really helpful information!!! ✊✊

  • @hamzadabaghi
    @hamzadabaghi ปีที่แล้ว

    Interesting 😀 thank you Philip Riecks

  • @grrlgd3835
    @grrlgd3835 ปีที่แล้ว +1

    thanks Phil. really useful talk

  • @softwaretestinglearninghub
    @softwaretestinglearninghub ปีที่แล้ว +1

    Great video, thank you!

  • @larryd9577
    @larryd9577 ปีที่แล้ว +5

    Slicing might decrease the test runtime drastically and saves potentially a lot of energy when ran often e.g. in CI

  • @tobyzieglerrr
    @tobyzieglerrr ปีที่แล้ว +1

    Thanks, great intro!

  • @MrMikomi
    @MrMikomi ปีที่แล้ว

    Great job. Thanks.

  • @iCraymer
    @iCraymer ปีที่แล้ว

    Great talk! 👍

  • @ehippo1
    @ehippo1 ปีที่แล้ว +1

    Didn't know about JSONassert, thank you)

  • @vincentmax4571
    @vincentmax4571 ปีที่แล้ว

    Very useful video

  • @Saurabhnaik
    @Saurabhnaik 8 หลายเดือนก่อน

    Thanks 🙏

  • @SirWolf2018
    @SirWolf2018 3 หลายเดือนก่อน

    Please don't use `assertEquals`, which expects the actual result on the left side, which is weird, it's like Yoda-style code ("blue is the sky"). AssertJ is much more readable in that regard, which puts the variable/expression on the left. JUnit's built-in assertions were never meant to replace a fully-fledged assertion framework, they leave that goal to libraries.

  • @danielwilkowski5899
    @danielwilkowski5899 5 หลายเดือนก่อน

    That presentation is broken from the start - why the guy says "testing spring application"? Why not just "testing application"? Why couple your tests to the framework?