I'm using gradle-6.5 and when I build my app on my laptop all builds well, but if I try to run the same command on docker, some tests are failed or something is going wrong.
I have an exception like the following:
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':test'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:205)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
...
Caused by: org.gradle.api.GradleException: There were failing tests. See the report at: file:///tmp/reports/tests/test/index.html
at org.gradle.api.tasks.testing.AbstractTestTask.handleTestFailures(AbstractTestTask.java:628)
at org.gradle.api.tasks.testing.AbstractTestTask.executeTests(AbstractTestTask.java:499)
at org.gradle.api.tasks.testing.Test.executeTests(Test.java:646)
and I want to know if some way to write a text that placed in an index.html file to console or maybe copy this file to my laptop.
For the build my app in the docker I use the following command:
docker build -t myapp .