$circle_test_report

Uh-oh, some tests have failed!
Failing command: cp -r /home/ubuntu/TestApp/app/build/outputs/androidTest-results/ $CIRCLE_TEST_REPORT
Exit code: 1

You should definitely post more information about your problem. Please see Creating a Good Question for more information.

I found the same line when searching for your issue. Could it be that your app isn’t called “TestApp” and because of that it tries to copy results from a folder that doesn’t even exist?

# copy the test results to the test results directory.
- cp -r /home/ubuntu/TestApp/app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORT

I guess you wouldn’t even need the whole path and a relative path would last as well:

- cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORT

Or something like this…?

- cp -r $HOME/$CIRCLE_PROJECT_REPONAME/app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORT
1 Like

i got solution . change the $CIRCLE_TEST_REPORT to $CIRCLE_TEST_REPORTS

2 Likes

That makes sense… https://circleci.com/docs/1.0/environment-variables/