Skip to content

Commit

Permalink
Allow running tests from commandline using NUnitLite. This helps debu…
Browse files Browse the repository at this point in the history
…gging the tests
  • Loading branch information
100029962 committed Dec 1, 2021
1 parent 60ffa9e commit a84a098
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion InteropTests/InteropTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<Platforms>x64</Platforms>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="coverlet.collector" Version="3.0.2" />
<PackageReference Include="NUnitLite" Version="3.13.2" />
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 9 additions & 0 deletions InteropTests/Main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using NUnitLite;

class TestRunner
{
public static int Main(string[] args)
{
return new AutoRun().Execute(args);
}
}

0 comments on commit a84a098

Please sign in to comment.