How to run Unit Tests with JaCoCo, Maven and IntelliJ IDEA

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

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

  • @parthasawant
    @parthasawant 10 หลายเดือนก่อน +2

    Concise, Focused, No BullShit 👍👍👍
    Keep it up Man 👍

    • @beginsecure
      @beginsecure  10 หลายเดือนก่อน +1

      Awesome comment. Thanks for noticing. I respect your time!!

  • @alejandrokovaltchuk8863
    @alejandrokovaltchuk8863 9 หลายเดือนก่อน +1

    Excellent explanation, nice job!

    • @beginsecure
      @beginsecure  9 หลายเดือนก่อน

      I really appreciate your feedback! It means a lot to me.

  • @sandeeprawat3471
    @sandeeprawat3471 4 หลายเดือนก่อน +1

    Thanks for making valuable information, concept cleared...

    • @beginsecure
      @beginsecure  4 หลายเดือนก่อน +1

      Thanks so much for saying that! All the best!!

  • @maalelmarwen3002
    @maalelmarwen3002 15 วันที่ผ่านมา +1

    Thank you for this video.
    when i see results of TU, they are all in red, like no tests has been executed. you know why ?

    • @beginsecure
      @beginsecure  8 วันที่ผ่านมา

      If everything's turning up red, it could be because JaCoCo isn't detecting your tests, so double-check that you're using the right annotations like @Test for JUnit. Also, make sure your build tool (like Maven or Gradle) has JaCoCo properly configured to run during the test phase.

  • @vireaksstorm5994
    @vireaksstorm5994 9 หลายเดือนก่อน

    Thank you so much for the video. I have a few questions for parameterizeTest above your case. Do you have to try to update these reports to the Sonarqube to check for the test? If it works how to set things up and running with related POM includes:
    Surefire, Jacoco, and Sonarqube for the project?

    • @beginsecure
      @beginsecure  9 หลายเดือนก่อน +1

      Thank you for your feedback! Yes, you can update Jacoco test reports to SonarQube to analyze your test coverage. To set this up, you need to configure your project's pom.xml file to include the Surefire plugin for running tests, the Jacoco plugin for generating the coverage reports, and the SonarQube plugin to analyze and send these reports to SonarQube. You'll need to add the plugin configurations for each of these tools in your pom.xml and ensure they are correctly set up to interact with each other. For SonarQube, you'll also have to configure the sonar.projectKey, sonar.host.url, and sonar.login properties, potentially in a sonar-project.properties file or directly in your pom.xml. Good topic for a future video. Thanks for watching!

    • @vireaksstorm5994
      @vireaksstorm5994 9 หลายเดือนก่อน +1

      @@beginsecure Thank you for your information. I am waiting for your new video.

  • @amineamine2208
    @amineamine2208 5 หลายเดือนก่อน +1

    Thank you so much for the video , i have a question please . what is the best sonarqube ou jacoco

    • @beginsecure
      @beginsecure  5 หลายเดือนก่อน +1

      Thanks for the question. It depends on what your goals are. JaCoCo is best for measuring test coverage, while SonarQube provides a broader range of static code analysis and integrates with JaCoCo for coverage metrics. Using both together gives you a complete picture of your code quality and test coverage. I would suggest using both.

  • @mihai6564
    @mihai6564 6 หลายเดือนก่อน +1

    thanks for the video

    • @beginsecure
      @beginsecure  6 หลายเดือนก่อน

      You're welcome, thanks for watching!

  • @develop-TC
    @develop-TC 6 หลายเดือนก่อน +1

    great!!

    • @beginsecure
      @beginsecure  6 หลายเดือนก่อน

      Thank you so much for your support!