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.
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
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?
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..
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..
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
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
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
Thanks a lot Kaushik
Kaushik .. you videos are great.. Just one suggeestion please reduce the screen space used by your video.. It will be more appealing
thank you!
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.
Undertaking this also start right now
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
is there any such plugin for gradle?
Is it possible that my test cases fail because my code is having the usage of deprecated methods or classes..?
Thank you
Thank you sir!!
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 ,
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?
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..
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..
Sir how to thank you 😊
You just did! 🙂
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
Very nice Koushik!
how to apply maven-surefire-plugin for gradle and run surefirereport commnad in gradle
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
There are test failures - fix the tests
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
Please don't make videos you can't explain properly you only focus on your ascent rather than technical aspects
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