Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add workflow for updating automated test results in TestRail #11424

Merged
merged 26 commits into from
Nov 26, 2024

Conversation

chrisleewilcox
Copy link
Contributor

@chrisleewilcox chrisleewilcox commented Sep 24, 2024

Description

Adding a workflow to release_e2e_pipeline to post test results to TestRail. This initial implementation will focus on utilizing TestRail API to post test results to TestRail mobile project when all workflows in the bitrise release_e2e_pipeline are successful. Test results will not be posted if any other workflow fails on the release_e2e_pipeline with this implementation.

Automated Test Cases in TestRail will need to be reviewed and updated to ensure the most accurate reporting until we implement mapping of automated scripts to automated test cases in TestRail. Once a mapping mechanism has been implemented this will allow us to report failed test runs in a more effective manner.

Not able to run the pipeline from bitrise dashboard until this PR is merged. Test runs for this PR was done using curl command shared in the bitrise advanced modal for the pipeline.

  • need auth token for bitrise

Related issues

Fixes: https://github.com/MetaMask/mobile-planning/issues/1891

Manual testing steps

  1. on bitrise MetaMask mobile project run release_e2e_pipeline on release branch
  2. all workflows on release_e2e_pipeline are successful
  3. test results from pipeline are posted to TestRail mobile project
  4. Test Run is created in TestRail will all automated test cases status is Passed

Screenshots/Recordings

Before

No workflow to save test results in TestRail

After

Failed pipeline doesn't post test results: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/4047bd66-20a1-405b-bd9d-c3e03942bc5a?tab=workflows

Pipeline with disabled workflows: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/961a7743-e820-4a8a-bcd8-a836c4babb48?tab=workflows

Successful pipeline post test results:
image

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@chrisleewilcox chrisleewilcox requested review from a team as code owners September 24, 2024 22:27
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

scripts/testrail/testrail.api.js Fixed Show resolved Hide resolved
@chrisleewilcox chrisleewilcox changed the title add workflow for updating automated test results in TestRail feat: add workflow for updating automated test results in TestRail Sep 24, 2024
@chrisleewilcox chrisleewilcox marked this pull request as draft September 25, 2024 00:24
@chrisleewilcox

This comment was marked as resolved.

@chrisleewilcox chrisleewilcox marked this pull request as ready for review November 14, 2024 15:49
@chrisleewilcox chrisleewilcox self-assigned this Nov 14, 2024
@chrisleewilcox chrisleewilcox added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Nov 14, 2024
@chrisleewilcox chrisleewilcox added the No QA Needed Apply this label when your PR does not need any QA effort. label Nov 14, 2024
cortisiko
cortisiko previously approved these changes Nov 25, 2024
Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮 🌮 🌮

@chrisleewilcox chrisleewilcox added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit 5ed686b Nov 26, 2024
37 checks passed
@chrisleewilcox chrisleewilcox deleted the testrail/add-test-run-with-results branch November 26, 2024 16:39
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Nov 26, 2024
@metamaskbot metamaskbot added the release-7.37.0 Issue or pull request that will be included in release 7.37.0 label Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.37.0 Issue or pull request that will be included in release 7.37.0 team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants