Tests work because other tests do use the nugets and gets picked up by
the runner. Yet, if we execute this projects witjout others, the tests
will fail when trying to use the nunit2 format.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
Manuel de la Pena 2022-06-22 17:10:27 -04:00 коммит произвёл GitHub
Родитель e8f935417b
Коммит fae8c53bbf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -32,6 +32,7 @@
<Reference Include="System.Xml" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.11.1" />
<PackageReference Include="NUnit.Extension.NUnitV2ResultWriter" Version="3.6.0" />
<PackageReference Include="Mono.Cecil" Version="0.11.4" />
<PackageReference Include="MSBuild.StructuredLogger" Version="2.1.500" />
</ItemGroup>
@ -81,4 +82,4 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
</Project>

Просмотреть файл

@ -35,6 +35,7 @@
<Reference Include="System.Xml" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.11.1" />
<PackageReference Include="NUnit.Extension.NUnitV2ResultWriter" Version="3.6.0" />
<Reference Include="mmp">
<Aliases>global,mmp</Aliases>
<HintPath Condition="$(TESTS_USE_SYSTEM) == ''">..\..\_mac-build\Library\Frameworks\Xamarin.Mac.framework\Versions\git\lib\mmp\mmp.exe</HintPath>

Просмотреть файл

@ -26,7 +26,8 @@
<Reference Include="Mono.Posix" />
<Reference Include="System.Xml" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.11.1" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.12.0" />
<PackageReference Include="NUnit.Extension.NUnitV2ResultWriter" Version="3.6.0" />
<PackageReference Include="MSBuild.StructuredLogger" Version="2.1.500" />
<Reference Include="Mono.Cecil">
<HintPath>..\..\builds\mono-ios-sdk-destdir\ios-bcl\monotouch_tools\Mono.Cecil.dll</HintPath>

10
tools/nunit3-console-3.12.0 Executable file
Просмотреть файл

@ -0,0 +1,10 @@
#!/bin/bash -eu
# This makes it so that stack traces have source code location
if test -z "${MONO_ENV_OPTIONS:-}"; then
export MONO_ENV_OPTIONS=--debug
fi
TOP="$(cd "$(dirname "$0")/.." && pwd)"
exec mono --debug "$TOP"/packages/nunit.consolerunner/3.12.0/tools/nunit3-console.exe "$@"