Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/FSharpLint.Console.Tests/Attributes.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace FSharpLint.Console.Tests

open NUnit.Framework

[<assembly: Parallelizable(ParallelScope.Fixtures)>]

do ()
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<ItemGroup>
<Compile Include="TestApp.fs" />
<Compile Include="Attributes.fs" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions tests/FSharpLint.Core.Tests/Attributes.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace FSharpLint.Core.Tests

open NUnit.Framework

[<assembly: Parallelizable(ParallelScope.All)>]
[<assembly: FixtureLifeCycle(LifeCycle.InstancePerTestCase)>]

do ()
1 change: 1 addition & 0 deletions tests/FSharpLint.Core.Tests/FSharpLint.Core.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
<Compile Include="Framework\TestAbstractSyntaxArray.fs" />
<Compile Include="Framework\TestExpressionUtilities.fs" />
<Compile Include="Framework\TestSuppression.fs" />
<Compile Include="Attributes.fs" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ let private matchBang len =
|> makeProgram "a"

/// Tests for the cyclomatic complexity rule.
[<SingleThreaded>]
type TestConventionsCyclomaticComplexity() =
inherit TestAstNodeRuleBase.TestAstNodeRuleBase(rule { Config.MaxComplexity = MaxComplexity; })

Expand Down
2 changes: 1 addition & 1 deletion tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))

[<TestFixture>]
[<TestFixture; SingleThreaded>]
type TestHintMatcher() =
inherit TestHintMatcherBase.TestHintMatcherBase()

Expand Down
7 changes: 7 additions & 0 deletions tests/FSharpLint.FunctionalTest/Attributes.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace FSharpLint.FunctionalTest

open NUnit.Framework

[<assembly: Parallelizable(ParallelScope.Fixtures)>]

do ()
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<ItemGroup>
<Compile Include="TestConsoleApplication.fs" />
<Compile Include="TestApi.fs" />
<Compile Include="Attributes.fs" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading