Skip to content

Commit 633e2d0

Browse files
committed
Add make run-tests RUN=TEST variable.
It is often useful to run only a single test instead of running all the tests. This can be done with `nunit-console -run:TESTNAME`. Allow the run-tests target to use the RUN variable to control the `nunit-console -run` option: make run-tests RUN=Java.InteropTests.InvokeVirtualFromConstructorTests
1 parent b2f0d6a commit 633e2d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ define RUN_TEST
5151
_JI_LOG=gref=g-$(basename $(notdir $(1))).txt,$(if $(2),lref=l-$(basename $(notdir $(1))).txt,) \
5252
mono --debug=casts $$MONO_OPTIONS --runtime=v4.0.0 \
5353
lib/NUnit-2.6.3/bin/nunit-console.exe $(1) \
54+
$(if $(RUN),-run:$(RUN)) \
5455
-output=bin/$(CONFIGURATION)/TestOutput-$(basename $(notdir $(1))).txt ;
5556
endef
5657

0 commit comments

Comments
 (0)