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

Use VSTest (TRX) result and attach diff snapshot files #2990

Merged
merged 4 commits into from
Mar 9, 2020

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Mar 7, 2020

This PR branch is under microsoft because we need to test it in VSTS. We can't test fork on VSTS.

Fixes #2897.

Changelog Entry

Added

  • Resolves #2897. Moved from JUnit to VSTest reporter with file attachments, by @compulim in PR #2990

Description

Today, we use a custom service, namely webchat-curator, to store our snapshots.

Since Azure DevOps support file attachment for test result, we can move away from our custom service and use Azure DevOps.

We need to move from JUnit reporter to VSTest/TRX reporter, and add custom code to inject the snapshot file.

https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=yaml#attachments-support

image

Specific Changes

  • Use jest-trx-results-processor
  • Configure the TRX processor to emit <FileResults>
  • After merging this PR, we need to update Azure DevOps

  • Testing Added
    • No tests added, can't automate testing for infrastructure

@corinagum
Copy link
Contributor

Build succeeded on Azure... merging.

@corinagum corinagum merged commit 0b0dfe8 into master Mar 9, 2020
@compulim compulim deleted the feat-trx-result branch April 3, 2020 13:51
@compulim compulim mentioned this pull request May 15, 2020
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test: Attaching snapshot diff as attachment on VSTS
3 participants