- Newest
- Most votes
- Most comments
Hello,
Thank you for reaching out to aws Re:Post team. I understand that you are able to successfully run test specs in aws device farm, which generates report in host machine file path.
In order to copy generated report, from host machine file path into customer artifact folder, we need to include the copy commands in the Test Spec file. For example, we can make a directory, say “TestReports" and include the below commands in the "post_test" section of Test Spec YML file to copy the file to desired location.
After our test run finishes, we can successfully collect the test reports file for our tests in the "customer artifacts" section of test reports on "DEVICEFARM_LOG_DIR/TestReports/<files>" path :
Example Command :
post_test:
commands:
- mkdir TestReports
- cp -r $DEVICEFARM_TEST_PACKAGE_PATH $DEVICEFARM_LOG_DIR/TestReports
I hope this is helpful. If you experience any issue, please let us know.
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago