JUnit 5 Basics 13 - Maven surefire plugin integration

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

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

  • @princegeorge7853
    @princegeorge7853 4 года назад

    Kaushik .. you videos are great.. Just one suggeestion please reduce the screen space used by your video.. It will be more appealing

  • @tinlokni2359
    @tinlokni2359 2 года назад

    Undertaking this also start right now

  • @AshaDevi-rh6vu
    @AshaDevi-rh6vu 5 лет назад +1

    Thanks a lot Kaushik

  • @gfunkonthecheesetree
    @gfunkonthecheesetree 3 года назад

    Thank you for the explanation! I was wondering why IntelliJ was running my excluded tagged tests configured in the pom.xml when running the unit tests within the IDE. Now I know this works only in the Maven build and I have to set up custom run configurations within the IDE.

  • @aniruddha7581
    @aniruddha7581 Год назад

    thank you!

  • @shelly1067
    @shelly1067 3 года назад

    Thank you

  • @SuperMaratman
    @SuperMaratman 4 года назад

    Very nice Koushik!

  • @hemanthsaibommuluri2161
    @hemanthsaibommuluri2161 4 года назад +1

    Hi ,
    Thanks for the video sir.
    I am using cucumber with junit framework .How to execute cucumber feature file from terminal using maven surefire .When I am trying to run using surefire plugin only unit tests are getting executed .could you please help me.
    Regards,
    Hemanth

  • @Younesswak11
    @Younesswak11 5 лет назад

    Thank you sir!!

  • @blackmind4359
    @blackmind4359 3 года назад

    Is it possible that my test cases fail because my code is having the usage of deprecated methods or classes..?

  • @likhithsworld
    @likhithsworld Год назад

    is there any such plugin for gradle?

  • @elbozo5723
    @elbozo5723 2 года назад

    The class needs to be named one of the following
    Test*
    *Test
    *Tests
    *TestCase
    With the * being any text, otherwise surefire runs but doesn't test anything

  • @abcpqr5117
    @abcpqr5117 4 года назад

    I included Maven surefire plugin 2.22.2 to the pom.xml file. When I select Maven, clean package in eclipse, the test reports are generated in the target folder. Reports are created for each class separately. Is that possible to get all results in a single report?

    • @nivas176
      @nivas176 2 года назад

      Yes it is possible, for all test casses report u will get in one html file, after build got success, check in target folder, there u will find one site folder, in this folder we will get..

  • @nivas176
    @nivas176 2 года назад

    Hi all, I have tried this one it works for all methods got passed, but report is not generating while one method got failed. I need to generate a report even build failed also, can anyone help me on this..

  • @rajatawasthi1880
    @rajatawasthi1880 4 года назад

    How ca i get per test case coverage while running them in parallel , means 2 different exec for 2 testcase & these test case run in parallel ,

  • @uma_r
    @uma_r 5 лет назад +5

    Sir how to thank you 😊

  • @Dragosknight
    @Dragosknight 5 лет назад

    how to apply maven-surefire-plugin for gradle and run surefirereport commnad in gradle

  • @AbdulAziz-xd5so
    @AbdulAziz-xd5so 5 лет назад

    Sir, I am getting below error,
    Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project sani: There are test failures.
    my pom

    org.apache.maven.plugins
    maven-surefire-plugin

    • @jaroslavbeno2
      @jaroslavbeno2 5 лет назад

      There are test failures - fix the tests

    • @PM-lv6cp
      @PM-lv6cp 4 года назад

      Add the following to the pom.xml

      org.apache.maven.plugins
      maven-compiler-plugin
      3.8.0

      org.apache.maven.plugins
      maven-surefire-plugin
      2.22.2

  • @naveenkumar-yd3ln
    @naveenkumar-yd3ln 3 года назад +1

    Please don't make videos you can't explain properly you only focus on your ascent rather than technical aspects

  • @eliassal1
    @eliassal1 2 года назад

    Thanks for those videos, however, I downloaded the source code, opened in eclipse, do mv test it gets built but it does not run any test as follows -------------------------------------------------------
    T E S T S
    -------------------------------------------------------
    Results :
    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0