From b020c4b41fe92a36215435c6b9193cd37045cfc8 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 21 Jul 2015 11:18:15 -0700 Subject: [PATCH] Enable xUnit unit test coverage results in XML --- .gitignore | 1 + scripts/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 77a271714..7d710e83e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ Makefile !scripts/Makefile cmake_install.cmake externals +scripts/xunittests.xml diff --git a/scripts/Makefile b/scripts/Makefile index 992b33edb..301862003 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -182,7 +182,7 @@ pester-tests: $(POWERSHELL_RUN_TARGETS) dotnetlibs/corerun dotnetlibs/Microsoft. cd exec_env/app_base && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=. ./corerun powershell-simple.exe 'cd ../../../src/pester-tests; $$env:TEMP="/tmp"; invoke-pester' test: $(RUN_TARGETS) internal-prepare-exec_env $(addprefix $(TESTRUN_FOLDER)/, ps_test.dll xunit.console.netcore.exe xunit.runner.utility.dll xunit.abstractions.dll xunit.execution.dll) dotnetlibs/corerun pester-tests - cd exec_env/testrun && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=../app_base ../app_base/corerun xunit.console.netcore.exe ps_test.dll + cd exec_env/testrun && PSMODULEPATH=$(shell pwd)/exec_env/app_base/Modules LD_LIBRARY_PATH=../app_base ../app_base/corerun xunit.console.netcore.exe ps_test.dll -xml ../../xunittests.xml # this is an internal target, it's not intended to be called manually internal-prepare-debugclr: