org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project test: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)

Stack Overflow | Sunil Ojha | 3 months ago
  1. 0

    Getting error with jenkins and maven surefire plugin

    Stack Overflow | 3 months ago | Sunil Ojha
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project test: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)
  2. 0

    JUnit test cases not running through maven

    Stack Overflow | 2 years ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project my_project: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)
  3. 0

    GitHub comment 72#45417018

    GitHub | 2 years ago | Neiko2002
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project chronicle: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 72#45418285

    GitHub | 2 years ago | BoundedBuffer
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project chronicle: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)
  6. 0

    Failed to execute unit tests using maven : No tests executed

    Stack Overflow | 1 year ago | user3057107
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project myproject: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)

  1. davidvanlaatum 47 times, last 3 weeks ago
  2. tvrmsmith 8 times, last 6 days ago
  3. tzrlk 2 times, last 3 months ago
  4. pnaranja 6 times, last 5 months ago
  5. davidvanlaatum 34 times, last 7 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.maven.plugin.MojoFailureException

    No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)

    at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution()
  2. Maven Surefire Common
    AbstractSurefireMojo.execute
    1. org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:64)
    2. org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:320)
    3. org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:892)
    4. org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:755)
    4 frames
  3. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    1 frame
  4. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
    9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    9 frames
  5. M3 Interceptor
    Maven32Launcher.main
    1. org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:483)
    4 frames
  7. Plexus
    Launcher.launch
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    2 frames
  8. jenkins.maven3.agent
    Maven32Main.launch
    1. jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:483)
    4 frames
  10. Hudson Maven Embedder
    Maven3Builder.call
    1. hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    2. hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    2 frames
  11. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:153)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:50)
    3. hudson.remoting.Request$2.run(Request.java:332)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    4 frames
  12. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames