cross-platform-testing

Execute .NET test suites on Linux via WSL.

Updated Sep 18, 2020
One-click install
npx skills add https://github.com/bitpantry/BitPantry.CommandLine --skill cross-platform-testing
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cross-platform-testing
Source: https://github.com/bitpantry/BitPantry.CommandLine/tree/main/.github/skills/cross-platform-testing
Command: npx skills add https://github.com/bitpantry/BitPantry.CommandLine --skill cross-platform-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of running .NET tests on Linux using WSL, addressing compatibility issues and ensuring cross-platform reliability.

Core Features & Use Cases

  • Linux Test Execution: Run .NET test suites on Linux locally via WSL.
  • Pre-release Validation: Check for Linux-specific issues before releasing.
  • Path Handling Verification: Confirm correct path handling across Windows and Linux.
  • CI Failure Resolution: Identify and fix CI failures on Linux environments.
  • Debugging: Diagnose and fix Linux-only test failures.

Quick Start

Execute all tests on Linux using: wsl -d Ubuntu -- bash -c 'cd /mnt/c/src/bitpantry/BitPantry.CommandLine && /usr/share/dotnet/dotnet test --configuration Release --verbosity normal'

Frequently Asked Questions about cross-platform-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run .NET tests on Linux using WSL?▼

You can run .NET tests on Linux using WSL by executing a bash command in your WSL distribution that invokes the dotnet test CLI. This allows you to validate your .NET applications for Linux compatibility locally.

How can I debug Linux-specific test failures for my .NET application?▼

You can debug Linux-specific .NET test failures by running your test suites locally through WSL. This allows you to identify and resolve issues like incorrect path handling between Windows and Linux environments.

Do I need WSL2 and the .NET SDK to test cross-platform compatibility?▼

Yes, WSL2 and the .NET SDK are required to use this cross-platform testing approach. These components provide the necessary Linux environment and build tools to execute and validate your test suites locally.

Can I resolve CI failures on Linux environments by testing locally?▼

Yes, you can resolve Linux CI failures by reproducing the CI environment locally using WSL. Running your .NET test suites in WSL helps identify the specific cross-platform issues causing failures in your Linux pipelines.

What is the best way to verify path handling across Windows and Linux in .NET?▼

The best way to verify path handling across Windows and Linux is to execute your .NET test suites in a local WSL environment. This directly tests how your application handles file paths under Linux file system conventions.