Skip to content

Commit

Permalink
Add assembly level attribute Parallelize (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink authored Jan 19, 2024
1 parent 6ac2386 commit 8399a07
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "UnitTest1.cs"
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "MSTestSettings.cs"
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "GlobalUsings.cs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="MSTest" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="MSTest" Version="3.1.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
open Microsoft.VisualStudio.TestTools.UnitTesting

module MSTestSettings =
[<assembly: Parallelize(Scope = ExecutionScope.MethodLevel)>]
do()

module Program = let [<EntryPoint>] main _ = 0
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "UnitTest1.vb"
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "MSTestSettings.vb"
}
],
"defaultName": "TestProject1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="MSTest" Version="3.1.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Imports Microsoft.VisualStudio.TestTools.UnitTesting

<Assembly: Parallelize(Scope:=ExecutionScope.MethodLevel)>
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "UnitTest1.cs"
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "MSTestSettings.cs"
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "GlobalUsings.cs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest" Version="3.1.1" />
<PackageReference Include="Microsoft.Playwright.MSTest" Version="1.41.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
<Using Include="Microsoft.Playwright.MSTest" />
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="System.Threading.Tasks" />
<Using Include="Microsoft.Playwright.MSTest" />
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

0 comments on commit 8399a07

Please sign in to comment.