From 54d5f431ee2492f8b4f2f12d0b6171c6a846c930 Mon Sep 17 00:00:00 2001 From: wtgodbe Date: Mon, 6 Mar 2017 13:44:21 -0800 Subject: Create Xunit wrappers for 2nd-level test directories instead of top-level --- tests/helixprep.proj | 2 +- tests/runtest.proj | 17 +++++++++++------ tests/tests.targets | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/tests/helixprep.proj b/tests/helixprep.proj index 6fa271a23d..0042b3a783 100644 --- a/tests/helixprep.proj +++ b/tests/helixprep.proj @@ -15,7 +15,7 @@ - + diff --git a/tests/runtest.proj b/tests/runtest.proj index 45f2bb7702..5b4aa10f4b 100644 --- a/tests/runtest.proj +++ b/tests/runtest.proj @@ -29,10 +29,13 @@ $([System.IO.Path]::GetFullPath(%(Identity))) - + + + + $([System.IO.Path]::GetFullPath(%(AllRunnableTestPaths.Identity))) - - + + @@ -118,7 +121,7 @@ $(_XunitEpilog) - $(XunitTestBinBase)\$(Category)\ + $(XunitTestBinBase)\$(CategoryWithSlash)\ ]]> @@ -151,7 +154,9 @@ $(_XunitEpilog) <_CMDDIR_Parent>$([System.IO.Path]::GetDirectoryName($(_CMDDIR))) - $([System.String]::Copy('$(_CMDDIR)').Replace($(_CMDDIR_Parent)\,'')) + <_CMDDIR_Grandparent>$([System.IO.Path]::GetDirectoryName($(_CMDDIR_Parent))) + $([System.String]::Copy('$(_CMDDIR)').Replace($(_CMDDIR_Grandparent)\,'')) + $([System.String]::Copy('$(CategoryWithSlash)').Replace('\','.')) $(Category).XUnitWrapper $(XunitWrapperGeneratedCSDirBase)$(Category) $(XunitWrapperOutputIntermediatedDirBase)$(Category) @@ -435,4 +440,4 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\",""). - + \ No newline at end of file diff --git a/tests/tests.targets b/tests/tests.targets index 78028cda27..8f00fd7499 100644 --- a/tests/tests.targets +++ b/tests/tests.targets @@ -14,7 +14,7 @@ - + -- cgit v1.2.3