Skip to content

Commit

Permalink
Merge pull request #12292 from woocommerce/bring_back_instrumented_te…
Browse files Browse the repository at this point in the history
…sts_annotations

Bring back instrumented tests annotations
  • Loading branch information
ParaskP7 authored Aug 12, 2024
2 parents 8583b6d + 73b99a3 commit d55bbb1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,16 @@ platform :android do
lane :build_and_instrumented_test do
gradle(tasks: %w[assembleVanillaDebug assembleVanillaDebugAndroidTest])

gradle(task: 'runFlank')
annotation_ctx = 'firebase-test-woocommerce-vanilla-debug'
begin
gradle(task: 'runFlank')
sh("buildkite-agent annotation remove --context '#{annotation_ctx}' || true") if is_ci?
rescue StandardError
details_url = sh('jq', '.[].webLink', '../build/instrumented-tests/matrix_ids.json', '-r')
message = "Firebase Tests failed. Failure details can be seen [here in Firebase Console](#{details_url})"
sh('buildkite-agent', 'annotate', message, '--style', 'error', '--context', annotation_ctx) if is_ci?
UI.test_failure!(message)
end
end

#####################################################################################
Expand Down

0 comments on commit d55bbb1

Please sign in to comment.