JUnit succeeds when run as "debug as junit test" but fails as "debug as gradle test". - Java Community | Help. Code. Learn.