Skip to content

fix: MockFileSystem.GetTempPath() returns real OS temp path by default #2211

fix: MockFileSystem.GetTempPath() returns real OS temp path by default

fix: MockFileSystem.GetTempPath() returns real OS temp path by default #2211

Status Failure
Total duration 2m 4s
Artifacts

ci.yml

on: pull_request
Matrix: Unit tests
Static code analysis
Static code analysis
Publish Tests Results
10s
Publish Tests Results
Fit to window
Zoom out
Zoom in

Annotations

33 errors and 5 warnings
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.1]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net8.0]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net6.0]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net472]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.1]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Unit tests (macos-latest)
/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/Users/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net8.0]
Unit tests (ubuntu-latest)
The strategy configuration was canceled because "unit-tests.macos-latest" failed
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net472]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net6.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net8.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.1]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Unit tests (ubuntu-latest)
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net472]
Unit tests (windows-latest)
The strategy configuration was canceled because "unit-tests.macos-latest" failed
Unit tests (windows-latest)
The operation was canceled.
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net6.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net472]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.1]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net8.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net6.0]
API tests
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystemOptions.cs(22,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net472]
Unit tests (macos-latest)
No files were found with the provided path: ./Artifacts/* ./TestResults/*.trx. No artifacts will be uploaded.
Unit tests (ubuntu-latest)
No files were found with the provided path: ./Artifacts/* ./TestResults/*.trx. No artifacts will be uploaded.
Unit tests (windows-latest)
No files were found with the provided path: ./Artifacts/* ./TestResults/*.trx. No artifacts will be uploaded.
API tests
No files were found with the provided path: ./Artifacts/* ./TestResults/*.trx. No artifacts will be uploaded.
Publish Tests Results
Could not find any files for artifacts/**/**/*.trx