From fae8c53bbf01916fbfbac98378416fb121056b06 Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Wed, 22 Jun 2022 17:10:27 -0400 Subject: [PATCH] [Tests] Add missing nuget. (#15313) 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 --- tests/generator/generator-tests.csproj | 3 ++- tests/mmptest/mmptest.csproj | 1 + tests/mtouch/mtouchtests.csproj | 3 ++- tools/nunit3-console-3.12.0 | 10 ++++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 tools/nunit3-console-3.12.0 diff --git a/tests/generator/generator-tests.csproj b/tests/generator/generator-tests.csproj index e891389b93..8b6345295d 100644 --- a/tests/generator/generator-tests.csproj +++ b/tests/generator/generator-tests.csproj @@ -32,6 +32,7 @@ + @@ -81,4 +82,4 @@ - \ No newline at end of file + diff --git a/tests/mmptest/mmptest.csproj b/tests/mmptest/mmptest.csproj index a35175ce17..cdd6d92d91 100644 --- a/tests/mmptest/mmptest.csproj +++ b/tests/mmptest/mmptest.csproj @@ -35,6 +35,7 @@ + global,mmp ..\..\_mac-build\Library\Frameworks\Xamarin.Mac.framework\Versions\git\lib\mmp\mmp.exe diff --git a/tests/mtouch/mtouchtests.csproj b/tests/mtouch/mtouchtests.csproj index 244b5dc086..69f01c84b9 100644 --- a/tests/mtouch/mtouchtests.csproj +++ b/tests/mtouch/mtouchtests.csproj @@ -26,7 +26,8 @@ - + + ..\..\builds\mono-ios-sdk-destdir\ios-bcl\monotouch_tools\Mono.Cecil.dll diff --git a/tools/nunit3-console-3.12.0 b/tools/nunit3-console-3.12.0 new file mode 100755 index 0000000000..70cee8a5e8 --- /dev/null +++ b/tools/nunit3-console-3.12.0 @@ -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 "$@"