Skip to content

Commit

Permalink
[tests] Log NUnit XML output into TestResult-*.xml (dotnet#62)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonpryor authored Aug 16, 2016
1 parent 23bb1d3 commit cfb49a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ obj
JavaDeveloper-2013005_dp__11m4609.pkg
LocalJDK
TestResult.xml
TestResult-*.xml
xa-gendarme.html
packages
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ define RUN_TEST
$(RUNTIME) $$MONO_OPTIONS --runtime=v4.0.0 \
$(NUNIT_CONSOLE) $(NUNIT_EXTRA) $(1) \
$(if $(RUN),-run:$(RUN)) \
-xml=TestResult-$(basename $(notdir $(1))).xml \
-output=bin/Test$(CONFIGURATION)/TestOutput-$(basename $(notdir $(1))).txt ;
endef

Expand Down

0 comments on commit cfb49a0

Please sign in to comment.