Skip to content

Commit

Permalink
Remove additional nunit args for now. Update Microsoft.CodeAnalysis.C…
Browse files Browse the repository at this point in the history
…Sharp. (#804)
  • Loading branch information
jhett12321 authored Feb 1, 2025
1 parent aed9559 commit 2c00af0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
6 changes: 0 additions & 6 deletions NWN.Anvil.TestRunner/NWN.Anvil.TestRunner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@
<DefineConstants>TRACE;TASK_PARALLEL_LIBRARY_API</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\NWN.Anvil\NWN.Anvil.csproj">
<Private>false</Private>
Expand Down
6 changes: 1 addition & 5 deletions NWN.Anvil.TestRunner/src/main/TestRunnerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ internal sealed class TestRunnerService
private readonly Queue<Assembly> testAssemblyQueue = new Queue<Assembly>();
private readonly string outputDir;

private readonly string additionalArgs = Environment.GetEnvironmentVariable("ANVIL_NUNIT_ARGS");

private Thread testWorkerThread;

public TestRunnerService(MainThreadSynchronizationContext mainThreadSynchronizationContext, PluginStorageService pluginStorageService)
Expand Down Expand Up @@ -81,9 +79,7 @@ private async Task Shutdown()
private string[] GetRunnerArguments(Assembly assembly)
{
string outputPath = Path.Combine(outputDir, assembly.GetName().Name!);

string args = $"--mainthread --work={outputPath} {additionalArgs}";
return string.IsNullOrEmpty(args) ? [] : CommandLineParser.SplitCommandLineIntoArguments(args, false).ToArray();
return ["--mainthread", $"--work={outputPath}"];
}
}
}
2 changes: 1 addition & 1 deletion NWN.Anvil.Tests/NWN.Anvil.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
<PackageReference Include="NWN.Core" Version="8193.37.0" PrivateAssets="compile" />
<PackageReference Include="NWN.Native" Version="8193.37.1" PrivateAssets="compile" />
</ItemGroup>
Expand Down

0 comments on commit 2c00af0

Please sign in to comment.