Executing test in subprojects


I have three Gradle subprojects: A, B, C. They have standard Java sourceSet structure. Assume A has a bad test. gradle test exits due to failure after A is done.

  1. Is there way to configure build script to execute tests on all subprojects and report success/failure at subproject level. test{ ignoreFailures=true } works but is not what I am looking for. I still want the build to fail as long as there is a failed test.
  2. To print where A, B, C html test reports copied at the end.

Thank you

I believe the answer to my own question is this although it does not work for me.

Hi Eugene,

I suppose you want to use --continue: https://docs.gradle.org/current/userguide/command_line_interface.html#sec:continue_build_on_failure