Skip to content

Conversation

@xperiandri
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 1, 2025 22:52
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 enables running tests in parallel by adding NUnit parallelization attributes, updating test project files, and aligning module namespaces.

  • Add assembly-level Parallelizable and lifecycle attributes via new Attributes.fs in test projects
  • Apply [<SingleThreaded>] to fixtures that aren’t thread-safe
  • Update module namespaces and import FSharpLint.Core.Tests in many test files

Reviewed Changes

Copilot reviewed 90 out of 90 changed files in this pull request and generated no comments.

File Description
tests/FSharpLint.FunctionalTest/Attributes.fs New assembly attribute for parallel fixture execution
tests/FSharpLint.FunctionalTest/TestApi.fs Renamed test method to reflect parallel config change
tests/FSharpLint.Core.Tests/Attributes.fs New assembly-level parallel and lifecycle attributes
CHANGELOG.md Documented the “Run tests in parallel” feature
Comments suppressed due to low confidence (1)

tests/FSharpLint.FunctionalTest/TestApi.fs:90

  • The test name replaces the actual file extension .json with _json, which could confuse readers. Consider restoring the original descriptive name (e.g., ...load fsharplint.json) to accurately reflect the file under test.
        member _.``Lint project with default config tries to load fsharplint_json``() =

@xperiandri xperiandri changed the base branch from master to tests-namespaces-fix July 1, 2025 22:54
@xperiandri xperiandri force-pushed the tests-namespaces-fix branch from e985162 to 5b8ddba Compare July 6, 2025 03:05
@xperiandri xperiandri force-pushed the parallel-tests branch 2 times, most recently from a19d754 to 5ff16c1 Compare July 6, 2025 14:02
@xperiandri xperiandri changed the base branch from tests-namespaces-fix to master July 6, 2025 14:05
@xperiandri xperiandri merged commit ca158b8 into master Jul 6, 2025
3 of 4 checks passed
@xperiandri xperiandri deleted the parallel-tests branch July 6, 2025 21:39
xperiandri added a commit that referenced this pull request Jul 11, 2025
## [0.25.0] - 2025-07-11

- Migrate from `Paket` to `Directory.Packages.props` #722 [@xperiandri]
- Migrate to .NET `9.0.201` and FCS `43.9.201` #722 [@xperiandri]
- Write test logs to test context output #722 [@xperiandri]
- Use string interpolation instead of `+` concatenation #724 [@xperiandri]
- Run tests in parallel #728 [@xperiandri]
- Remove `NoPartialFunctions` compiler workaround (#698) [@webwarrior-ws]
- Add `SLNX` and `SLNF` format support and migrate to SLNX solution #723 [@xperiandri]
  Remove `Ionide.ProjInfo.Sln` NuGet package dependency
- Remove `Newtonsoft.Json` NuGet dependency #725 [@xperiandri]
- Add missing rule checks for FL0079-FL0081 #713 [@BennieCopeland]
- Modify `.gitignore` to the Visual Studio standard one #735 [@xperiandri]
- Add basic Copilot instructions and GitHub MCP #726 [@xperiandri]
- Migrate `Fornax` to `0.16.0-beta002` and `FSharp.Formatting` to `20.0.1` #736 [@xperiandri, @Numpsy]
- Update the build instructions to use `dotnet fsi` instead of `fake-cli` #734 [@Numpsy]
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.

2 participants