Appium - Getting Error While Run Test file in Studio

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:testDebugUnitTest’.

There were failing tests. See the report at: file:///C:/Users/…/MyApplication/app/build/reports/tests/testDebugUnitTest/index.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 5s