Skip to content

Commit cfb49a0

Browse files
authored
[tests] Log NUnit XML output into TestResult-*.xml (#62)
We're running on Jenkins! https://jenkins.mono-project.com/view/Xamarin.Android/job/java-interop/ Jenkins allows processing NUnit test output! https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin Update `make run-test` so that it logs `nunit-console` XML output into `TestResult-*.xml` files, which embeds the unit test filename, e.g. `TestResult-Java.Interop-Tests.xml`. This will allow the xUnit plugin to nicely render that output.
1 parent 23bb1d3 commit cfb49a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ obj
44
JavaDeveloper-2013005_dp__11m4609.pkg
55
LocalJDK
66
TestResult.xml
7+
TestResult-*.xml
78
xa-gendarme.html
89
packages

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ define RUN_TEST
125125
$(RUNTIME) $$MONO_OPTIONS --runtime=v4.0.0 \
126126
$(NUNIT_CONSOLE) $(NUNIT_EXTRA) $(1) \
127127
$(if $(RUN),-run:$(RUN)) \
128+
-xml=TestResult-$(basename $(notdir $(1))).xml \
128129
-output=bin/Test$(CONFIGURATION)/TestOutput-$(basename $(notdir $(1))).txt ;
129130
endef
130131

0 commit comments

Comments
 (0)