Skip to content

Comments

test: consider settings for skipping tests against real file system#949

Merged
vbreuss merged 1 commit intomainfrom
topic/consider-settings
Feb 24, 2026
Merged

test: consider settings for skipping tests against real file system#949
vbreuss merged 1 commit intomainfrom
topic/consider-settings

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Feb 24, 2026

This PR applies the test settings mechanism to conditionally skip tests that interact with the real file system in the Testably.Abstractions.Testing.Tests project. This allows developers to control whether these tests run based on configuration settings, similar to the pattern already used for brittle and long-running tests in the generated test classes.

@vbreuss vbreuss self-assigned this Feb 24, 2026
Copilot AI review requested due to automatic review settings February 24, 2026 19:00
@vbreuss vbreuss added the refactor A change or improvement without functional impact label Feb 24, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a test settings mechanism to conditionally skip tests that interact with the real file system in the Testably.Abstractions.Testing.Tests project. This allows developers to control whether these tests run based on configuration settings, similar to the pattern already used for brittle and long-running tests in the generated test classes.

Changes:

  • Added a collection fixture to enable test settings for real file system tests
  • Updated FileSystemInitializerExtensionsTests to use the fixture and conditionally skip tests that interact with the real file system
  • Implemented a skip helper method with DEBUG/RELEASE mode-specific logic

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
Tests/Testably.Abstractions.Testing.Tests/TestHelpers/FileSystemTestSettingsFixture.cs Defines the xUnit collection fixture for the "RealFileSystemTests" collection, enabling TestSettingsFixture injection
Tests/Testably.Abstractions.Testing.Tests/FileSystemInitializerExtensionsTests.cs Adds collection attribute, constructor parameter injection, skip helper method, and skip calls to tests that interact with the real file system

@vbreuss vbreuss enabled auto-merge (squash) February 24, 2026 19:05
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@vbreuss vbreuss merged commit fad251c into main Feb 24, 2026
15 of 17 checks passed
@vbreuss vbreuss deleted the topic/consider-settings branch February 24, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor A change or improvement without functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant