From 60c53c8ce6c15c4f7379fff61aba06936c9ea433 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:02:37 +0100 Subject: [PATCH 1/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 23c060d..a6a4123 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,16 +28,7 @@ steps: arguments: '--configuration $(buildConfiguration)' projects: 'GeoUK/GeoUK.csproj' -# Run tests -- task: VSTest@2 - inputs: - testSelector: 'testAssemblies' - testAssemblyVer2: | - **\*test*.dll - !**\*TestAdapter.dll - !**\obj\** - searchFolder: '$(System.DefaultWorkingDirectory)' - codeCoverageEnabled: true + # The second task is dotnet pack command again pointing to the csproj file # The nobuild means the project will not be compiled before running pack, because its already built in above step From c0123d4916f2931cec0978ba72ea7f0d16213428 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:03:19 +0100 Subject: [PATCH 2/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a6a4123..c694946 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,8 +28,6 @@ steps: arguments: '--configuration $(buildConfiguration)' projects: 'GeoUK/GeoUK.csproj' - - # The second task is dotnet pack command again pointing to the csproj file # The nobuild means the project will not be compiled before running pack, because its already built in above step - task: DotNetCoreCLI@2 From 40b09a2c65d1f62cb383279812b284fa97b18321 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:03:51 +0100 Subject: [PATCH 3/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c694946..cd947bb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,6 +28,14 @@ steps: arguments: '--configuration $(buildConfiguration)' projects: 'GeoUK/GeoUK.csproj' +# Unit tests +- task: VSTest@2 + displayName: Unit tests + inputs: + testSelector: 'testAssemblies' + testAssemblyVer2: '**\$(BuildConfiguration)\*\*GeoUK.OSTN.Tests.dll' + searchFolder: '$(System.DefaultWorkingDirectory)' + codeCoverageEnabled: true # The second task is dotnet pack command again pointing to the csproj file # The nobuild means the project will not be compiled before running pack, because its already built in above step - task: DotNetCoreCLI@2 From c6cddcc32bf05a60a968f3072e0aa342d947ea97 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:05:45 +0100 Subject: [PATCH 4/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cd947bb..8d18bfa 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ steps: displayName: Unit tests inputs: testSelector: 'testAssemblies' - testAssemblyVer2: '**\$(BuildConfiguration)\*\*GeoUK.OSTN.Tests.dll' + testAssemblyVer2: '**\$(BuildConfiguration)\*GeoUK.OSTN.Tests.dll' searchFolder: '$(System.DefaultWorkingDirectory)' codeCoverageEnabled: true # The second task is dotnet pack command again pointing to the csproj file From dbf0877570e32c698710801639de54cd7fa0d691 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:07:18 +0100 Subject: [PATCH 5/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8d18bfa..d545865 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,9 +33,11 @@ steps: displayName: Unit tests inputs: testSelector: 'testAssemblies' - testAssemblyVer2: '**\$(BuildConfiguration)\*GeoUK.OSTN.Tests.dll' + testAssemblyVer2: '**\$(BuildConfiguration)\GeoUK.OSTN.Tests.dll' searchFolder: '$(System.DefaultWorkingDirectory)' codeCoverageEnabled: true + + # The second task is dotnet pack command again pointing to the csproj file # The nobuild means the project will not be compiled before running pack, because its already built in above step - task: DotNetCoreCLI@2 From a06ea4603e92f2b9dbc19c9a401f4d6107c58e3b Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:11:02 +0100 Subject: [PATCH 6/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d545865..774acce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,14 +30,15 @@ steps: # Unit tests - task: VSTest@2 - displayName: Unit tests inputs: testSelector: 'testAssemblies' - testAssemblyVer2: '**\$(BuildConfiguration)\GeoUK.OSTN.Tests.dll' + testAssemblyVer2: | + **\*tests*.dll + !**\*TestAdapter.dll + !**\obj\** searchFolder: '$(System.DefaultWorkingDirectory)' codeCoverageEnabled: true - # The second task is dotnet pack command again pointing to the csproj file # The nobuild means the project will not be compiled before running pack, because its already built in above step - task: DotNetCoreCLI@2 From 26e450bd060bc840aac379026d4caa0046329fa0 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:19:38 +0100 Subject: [PATCH 7/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 774acce..0818fa8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ steps: inputs: testSelector: 'testAssemblies' testAssemblyVer2: | - **\*tests*.dll + **\*\*tests*.dll !**\*TestAdapter.dll !**\obj\** searchFolder: '$(System.DefaultWorkingDirectory)' From e0047ad2f5c054a62d750bc6b6793b9824dcc276 Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:24:46 +0100 Subject: [PATCH 8/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0818fa8..774acce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ steps: inputs: testSelector: 'testAssemblies' testAssemblyVer2: | - **\*\*tests*.dll + **\*tests*.dll !**\*TestAdapter.dll !**\obj\** searchFolder: '$(System.DefaultWorkingDirectory)' From cad0832d5ceef4f419e59a3d48640b726a638f2b Mon Sep 17 00:00:00 2001 From: Ieuan Walker Date: Sat, 13 Jul 2019 02:26:47 +0100 Subject: [PATCH 9/9] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 774acce..6b04717 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ steps: inputs: testSelector: 'testAssemblies' testAssemblyVer2: | - **\*tests*.dll + **/*GeoUK.OSTN.Tests.dll !**\*TestAdapter.dll !**\obj\** searchFolder: '$(System.DefaultWorkingDirectory)'