From 18547b9c2297cb8698526286e65fffd3e8cf7ec5 Mon Sep 17 00:00:00 2001 From: Andrii Chebukin Date: Wed, 2 Jul 2025 02:51:37 +0400 Subject: [PATCH] feat(tests): run in parallel --- CHANGELOG.md | 1 + tests/FSharpLint.Console.Tests/Attributes.fs | 7 +++++++ .../FSharpLint.Console.Tests.fsproj | 1 + tests/FSharpLint.Core.Tests/Attributes.fs | 8 ++++++++ tests/FSharpLint.Core.Tests/FSharpLint.Core.Tests.fsproj | 1 + .../Rules/Conventions/CyclomaticComplexity.fs | 1 + tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs | 2 +- tests/FSharpLint.FunctionalTest/Attributes.fs | 7 +++++++ .../FSharpLint.FunctionalTest.fsproj | 1 + 9 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 tests/FSharpLint.Console.Tests/Attributes.fs create mode 100644 tests/FSharpLint.Core.Tests/Attributes.fs create mode 100644 tests/FSharpLint.FunctionalTest/Attributes.fs diff --git a/CHANGELOG.md b/CHANGELOG.md index fd35bc449..5d84105ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - 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] ## [0.24.2] - 2024-02-29 diff --git a/tests/FSharpLint.Console.Tests/Attributes.fs b/tests/FSharpLint.Console.Tests/Attributes.fs new file mode 100644 index 000000000..72e9f9789 --- /dev/null +++ b/tests/FSharpLint.Console.Tests/Attributes.fs @@ -0,0 +1,7 @@ +namespace FSharpLint.Console.Tests + +open NUnit.Framework + +[] + +do () diff --git a/tests/FSharpLint.Console.Tests/FSharpLint.Console.Tests.fsproj b/tests/FSharpLint.Console.Tests/FSharpLint.Console.Tests.fsproj index f6bf54bcd..e29572d64 100644 --- a/tests/FSharpLint.Console.Tests/FSharpLint.Console.Tests.fsproj +++ b/tests/FSharpLint.Console.Tests/FSharpLint.Console.Tests.fsproj @@ -7,6 +7,7 @@ + diff --git a/tests/FSharpLint.Core.Tests/Attributes.fs b/tests/FSharpLint.Core.Tests/Attributes.fs new file mode 100644 index 000000000..1008e54b5 --- /dev/null +++ b/tests/FSharpLint.Core.Tests/Attributes.fs @@ -0,0 +1,8 @@ +namespace FSharpLint.Core.Tests + +open NUnit.Framework + +[] +[] + +do () \ No newline at end of file diff --git a/tests/FSharpLint.Core.Tests/FSharpLint.Core.Tests.fsproj b/tests/FSharpLint.Core.Tests/FSharpLint.Core.Tests.fsproj index 1924d3f2d..3d82af5a0 100644 --- a/tests/FSharpLint.Core.Tests/FSharpLint.Core.Tests.fsproj +++ b/tests/FSharpLint.Core.Tests/FSharpLint.Core.Tests.fsproj @@ -92,6 +92,7 @@ + diff --git a/tests/FSharpLint.Core.Tests/Rules/Conventions/CyclomaticComplexity.fs b/tests/FSharpLint.Core.Tests/Rules/Conventions/CyclomaticComplexity.fs index ba207271e..271a7a1a1 100644 --- a/tests/FSharpLint.Core.Tests/Rules/Conventions/CyclomaticComplexity.fs +++ b/tests/FSharpLint.Core.Tests/Rules/Conventions/CyclomaticComplexity.fs @@ -110,6 +110,7 @@ let private matchBang len = |> makeProgram "a" /// Tests for the cyclomatic complexity rule. +[] type TestConventionsCyclomaticComplexity() = inherit TestAstNodeRuleBase.TestAstNodeRuleBase(rule { Config.MaxComplexity = MaxComplexity; }) diff --git a/tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs b/tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs index a11b02433..fc4627025 100644 --- a/tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs +++ b/tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs @@ -11,7 +11,7 @@ type Assert with else raise (NUnit.Framework.AssertionException($"No errors were expected, but there were some errors. Errors were:\n{this.ErrorMsg}")) -[] +[] type TestHintMatcher() = inherit TestHintMatcherBase.TestHintMatcherBase() diff --git a/tests/FSharpLint.FunctionalTest/Attributes.fs b/tests/FSharpLint.FunctionalTest/Attributes.fs new file mode 100644 index 000000000..367f9b7b7 --- /dev/null +++ b/tests/FSharpLint.FunctionalTest/Attributes.fs @@ -0,0 +1,7 @@ +namespace FSharpLint.FunctionalTest + +open NUnit.Framework + +[] + +do () \ No newline at end of file diff --git a/tests/FSharpLint.FunctionalTest/FSharpLint.FunctionalTest.fsproj b/tests/FSharpLint.FunctionalTest/FSharpLint.FunctionalTest.fsproj index 18664508c..363904185 100644 --- a/tests/FSharpLint.FunctionalTest/FSharpLint.FunctionalTest.fsproj +++ b/tests/FSharpLint.FunctionalTest/FSharpLint.FunctionalTest.fsproj @@ -8,6 +8,7 @@ +