Commit 334989ae authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixing test run on Mac/Linux

parent e2e423c4
...@@ -14,7 +14,7 @@ script: ...@@ -14,7 +14,7 @@ script:
- nuget restore NLua.sln - nuget restore NLua.sln
- msbuild /p:Configuration=Release /t:Restore NLua.sln - msbuild /p:Configuration=Release /t:Restore NLua.sln
- msbuild /p:Configuration=Release NLua.sln - msbuild /p:Configuration=Release NLua.sln
- mono packages/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe ./tests/build/net45/bin/Release/NLuaTest.dll - dotnet test ./tests/build/net45/bin/Release/NLuaTest.dll
# Execute additional tests or commands # Execute additional tests or commands
#after_script: #after_script:
......
...@@ -52,7 +52,7 @@ jobs: ...@@ -52,7 +52,7 @@ jobs:
solution: NLua.Mac.sln solution: NLua.Mac.sln
configuration: Release configuration: Release
- script: 'mono packages/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe ./tests/build/net45/bin/Release/NLuaTest.dll --result=TEST-Result-Mac.xml' - script: 'dotnet test ./tests/build/net45/bin/Release/NLuaTest.dll --result=TEST-Result-Mac.xml'
displayName: 'Run OSX tests' displayName: 'Run OSX tests'
- task: PublishTestResults@2 - task: PublishTestResults@2
......
...@@ -58,6 +58,11 @@ ...@@ -58,6 +58,11 @@
<PackageReference Include="NUnit"> <PackageReference Include="NUnit">
<Version>3.12.0</Version> <Version>3.12.0</Version>
</PackageReference> </PackageReference>
<PackageReference Include="NUnit3TestAdapter">
<Version>3.16.1</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLuaTest.Shared.projitems" Label="Shared" /> <Import Project="..\..\src\NLuaTest.Shared.projitems" Label="Shared" />
<Import Project="..\..\src\NLuaTest.Shared.Scripts.projitems" Label="Shared" /> <Import Project="..\..\src\NLuaTest.Shared.Scripts.projitems" Label="Shared" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment