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

chore: Add remote testing settings for WSL environment #10485

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Dec 29, 2024

This PR add Visual Studio Remote Testing (Preview) supports to run snapshot tests on WSL Ubuntu environment.

What's changed in this PR

  1. Add testEnvironments.json setting file for WSL with Visual Studio Remote Testing.
  2. Add CallerFilePath related path rewrite logics for WSL environment that use Visual Studio Remote Testing.
    (When using Visual Studio Remote Testing. docfx assemblies are build on Windows. And tested on WSL environment.)

How to setup WSL environment(Ubuntu)

  1. Install Visual Studio Remote Debugger on WSL environment.
    On my environment it failed to install debugger dependencies by Visual Studio Test Explorer.
    It need to execute following command on WSL environment to install remote debugger.

curl -sSL https://aka.ms/getvsdbgsh | sudo /bin/sh /dev/stdin -v latest -l /usr/local/.vsdbg/

  1. Install node.js
    Install Node.js 18 with following command.

sudo apt install nodejs

  1. Install additional fonts
    It need to additional fonts that used for PDF embedded fonts to suppress PDF JSON diffs.
sudo apt-get install "fonts-liberation"
sudo apt install "fonts-noto-color-emoji"

@filzrev filzrev force-pushed the chore-add-remote-testing-for-wsl branch from 974588e to f8d9c6d Compare December 30, 2024 00:00
@filzrev filzrev force-pushed the chore-add-remote-testing-for-wsl branch from 014c8de to d16bd66 Compare December 30, 2024 00:48
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.34%. Comparing base (fe673ec) to head (d16bd66).
Report is 499 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10485      +/-   ##
==========================================
+ Coverage   74.31%   79.34%   +5.02%     
==========================================
  Files         536      547      +11     
  Lines       23189    23629     +440     
  Branches     4056     4062       +6     
==========================================
+ Hits        17234    18749    +1515     
+ Misses       4853     3710    -1143     
- Partials     1102     1170      +68     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant