Add NUnit configuration with correct binpath

This allows the tests to find and load OpenRA.Mods.Common.dll correctly
under Linux / Mono.

This should fix #10325.
This commit is contained in:
Piët Delport
2015-12-29 21:03:51 +02:00
parent 6190db06ad
commit 8050b10488
2 changed files with 7 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ nunit: test_dll
echo 'NUnit version >= 2.6 required'>&2; \
exit 1; \
fi
@$(NUNIT_CONSOLE) --noresult $(test_dll_TARGET)
@$(NUNIT_CONSOLE) --noresult OpenRA.Test.nunit
test: utility mods
@echo

6
OpenRA.Test.nunit Normal file
View File

@@ -0,0 +1,6 @@
<NUnitProject>
<Settings activeconfig="Debug"/>
<Config name="Debug" binpath="mods/common">
<assembly path="OpenRA.Test.dll"/>
</Config>
</NUnitProject>