Skip to content

Make dump output tests line-ending agnostic#59

Open
smurtdev wants to merge 1 commit into
ycherkes:mainfrom
smurtdev:fix/cross-platform-line-ending-tests
Open

Make dump output tests line-ending agnostic#59
smurtdev wants to merge 1 commit into
ycherkes:mainfrom
smurtdev:fix/cross-platform-line-ending-tests

Conversation

@smurtdev
Copy link
Copy Markdown

Summary

  • Use xUnit's ignoreLineEndingDifferences: true for dump output string assertions
  • Make DriveInfo middleware expectations derive the platform-specific drive name
  • Keeps production output unchanged while allowing tests to pass on Linux and Windows line endings

Verification

  • dotnet build VarDump.sln --configuration Release --no-restore
  • dotnet test test/VarDump.UnitTests/VarDump.UnitTests.csproj --configuration Release --no-build --framework net6.0
  • dotnet test test/VarDump.UnitTests/VarDump.UnitTests.csproj --configuration Release --no-build --framework net9.0
  • dotnet test test/VarDump.Extensions.UnitTests/VarDump.Extensions.UnitTests.csproj --configuration Release --no-build --framework net6.0
  • dotnet test test/VarDump.Extensions.UnitTests/VarDump.Extensions.UnitTests.csproj --configuration Release --no-build --framework net9.0

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