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

Sdílet
Vložit
  • čas přidán 12. 10. 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 CZcams 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.
  • Věda a technologie

Komentáře • 22

  • @pawelk7302
    @pawelk7302 Před rokem +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.

  • @Strannik20111
    @Strannik20111 Před rokem +23

    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 Před rokem +9

      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 Před rokem +4

      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 Před 2 měsíci

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

  • @nicovanbelle1751
    @nicovanbelle1751 Před rokem +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 Před rokem +4

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

    • @hariharanramakrishnan3220
      @hariharanramakrishnan3220 Před rokem +5

      Where is the full course link

  • @edekara
    @edekara Před rokem +3

    Gold Nugget for Spring Testing Lovers

  • @zenitchik2010
    @zenitchik2010 Před rokem +3

    Thanks bro! Really helpful information!!! ✊✊

  • @grrlgd3835
    @grrlgd3835 Před rokem +1

    thanks Phil. really useful talk

  • @hamzadabaghi
    @hamzadabaghi Před rokem

    Interesting 😀 thank you Philip Riecks

  • @softwaretestinglearninghub

    Great video, thank you!

  • @tobyzieglerrr
    @tobyzieglerrr Před rokem +1

    Thanks, great intro!

  • @larryd9577
    @larryd9577 Před rokem +5

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

  • @MrMikomi
    @MrMikomi Před rokem

    Great job. Thanks.

  • @iCraymer
    @iCraymer Před rokem

    Great talk! 👍

  • @ehippo1
    @ehippo1 Před rokem +1

    Didn't know about JSONassert, thank you)

  • @vincentmax4571
    @vincentmax4571 Před rokem

    Very useful video

  • @Saurabhnaik
    @Saurabhnaik Před 7 měsíci

    Thanks 🙏

  • @SirWolf2018
    @SirWolf2018 Před 2 měsíci

    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 Před 4 měsíci

    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?