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

feat: allow simulating other operating systems #576

Merged
merged 5 commits into from
Apr 29, 2024

Conversation

vbreuss
Copy link
Member

@vbreuss vbreuss commented Apr 21, 2024

Enable the simulation tests for all shared tests and make the simulation mode functionality public.
With this mode, it is possible to simulate the file system on another operating system, e.g. you can simulate a Linux file system on a Windows machine or vice versa.

The mode can be enabled in the constructor:

  var fileSystem = new MockFileSystem(o => o.SimulatingOperatingSystem(SimulationMode.Linux));

Limitation:
The simulation mode currently only works on .NET (Core) and throw a NotSupportedException in the constructor, when setting it on .NET Framework.

This fixes #460.

@vbreuss vbreuss added the enhancement New feature or request label Apr 21, 2024
@vbreuss vbreuss self-assigned this Apr 21, 2024
@vbreuss vbreuss force-pushed the topic/enable-tests-globally branch from 403d614 to 2080566 Compare April 21, 2024 07:04
@vbreuss vbreuss marked this pull request as ready for review April 21, 2024 07:11
Copy link

Stryker.NET mutation tested the changes in the pull request:
Mutation testing badge

@vbreuss vbreuss force-pushed the topic/enable-tests-globally branch from de1aa43 to bcce69d Compare April 29, 2024 08:37
@vbreuss vbreuss force-pushed the topic/enable-tests-globally branch 2 times, most recently from 70c76c7 to c5be158 Compare April 29, 2024 08:53
@vbreuss vbreuss force-pushed the topic/enable-tests-globally branch from c5be158 to 1b2d8f8 Compare April 29, 2024 08:54
Copy link

sonarcloud bot commented Apr 29, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@vbreuss vbreuss merged commit 615a74e into main Apr 29, 2024
17 checks passed
@vbreuss vbreuss deleted the topic/enable-tests-globally branch April 29, 2024 10:29
Copy link

github-actions bot commented May 5, 2024

This is addressed in release v3.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request state: released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to simulate File System on other platform
1 participant