Skip to content

Commit 456fdaf

Browse files
authored
Merge pull request #7625 from woocommerce/save-test-result-as-artifacts
Save test result as artifacts
2 parents c94ad9b + 663ef14 commit 456fdaf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.buildkite/commands/run-ui-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ echo "--- 🧪 Testing"
3636
xcrun simctl list >> /dev/null
3737
rake mocks &
3838
bundle exec fastlane test_without_building name:"$TEST_NAME" device:"$DEVICE" ios_version:"$IOS_VERSION"
39+
40+
echo "--- 📦 Zipping test results"
41+
cd fastlane/test_output/ && zip -rq WooCommerce.xcresult.zip WooCommerce.xcresult && cd -

.buildkite/commands/run-unit-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ install_gems
1717

1818
echo "--- 🧪 Testing"
1919
bundle exec fastlane test_without_building name:UnitTests
20+
21+
echo "--- 📦 Zipping test results"
22+
cd fastlane/test_output/ && zip -rq WooCommerce.xcresult.zip WooCommerce.xcresult && cd -

.buildkite/pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ steps:
4444
depends_on: "build"
4545
env: *common_env
4646
plugins: *common_plugins
47+
artifact_paths:
48+
- "fastlane/test_output/*"
4749
notify:
4850
- github_commit_status:
4951
context: "Unit Tests"
@@ -71,7 +73,7 @@ steps:
7173
env: *common_env
7274
plugins: *common_plugins
7375
artifact_paths:
74-
- "build/results/"
76+
- "fastlane/test_output/*"
7577
notify:
7678
- github_commit_status:
7779
context: "UI Tests (iPhone)"
@@ -82,7 +84,7 @@ steps:
8284
env: *common_env
8385
plugins: *common_plugins
8486
artifact_paths:
85-
- "build/results/"
87+
- "fastlane/test_output/*"
8688
notify:
8789
- github_commit_status:
8890
context: "UI Tests (iPad)"

0 commit comments

Comments
 (0)