mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Kusto - Added code coverage to Build (#1253)
* Modified build.yml to run code coverage and modified logfilename to nunit.trx * Changed logfilename for Kusto and SqlTools for Unit Tests. Added codeCoverage flag to SqlTools * Added Kusto PublishTestResults task. Changed SqlTools testresult to use SqlTools.ServiceLayer.UnitTests.trx * Added Microsoft.NET.Test.Sdk to Kusto.ServiceLayer. Changed build.yml to not PublishTestResults for Kusto. * Removed reference to Microsoft.NET.Test.Sdk in Kusto.ServiceLayer. Removed PublishTestResults from ServiceLayer.UnitTests. * Added testRunTitle to Kusto and SqlTools test tasks
This commit is contained in:
@@ -72,14 +72,16 @@ steps:
|
|||||||
inputs:
|
inputs:
|
||||||
command: test
|
command: test
|
||||||
projects: test/Microsoft.SqlTools.ServiceLayer.UnitTests
|
projects: test/Microsoft.SqlTools.ServiceLayer.UnitTests
|
||||||
arguments: '--logger "trx;LogFileName=xunit.trx"'
|
testRunTitle: SqlTools.ServiceLayer.UnitTests
|
||||||
|
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
displayName: 'dotnet test test/Microsoft.Kusto.ServiceLayer.UnitTests'
|
displayName: 'dotnet test test/Microsoft.Kusto.ServiceLayer.UnitTests'
|
||||||
inputs:
|
inputs:
|
||||||
command: test
|
command: test
|
||||||
projects: test/Microsoft.Kusto.ServiceLayer.UnitTests
|
projects: test/Microsoft.Kusto.ServiceLayer.UnitTests
|
||||||
arguments: '--logger "trx;LogFileName=xunit.trx"'
|
testRunTitle: Kusto.ServiceLayer.UnitTests
|
||||||
|
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
|
||||||
|
|
||||||
- task: Npm@1
|
- task: Npm@1
|
||||||
displayName: 'npm install -g gulp-cli'
|
displayName: 'npm install -g gulp-cli'
|
||||||
@@ -210,10 +212,4 @@ steps:
|
|||||||
command: push
|
command: push
|
||||||
packagesToPush: '$(Build.SourcesDirectory)/artifacts/nugetPackages/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
packagesToPush: '$(Build.SourcesDirectory)/artifacts/nugetPackages/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
||||||
publishVstsFeed: '2191dd5f-4aec-491b-ac50-568bbc331c8a'
|
publishVstsFeed: '2191dd5f-4aec-491b-ac50-568bbc331c8a'
|
||||||
allowPackageConflicts: true
|
allowPackageConflicts: true
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
|
||||||
displayName: 'Publish Test Results **/xunit.trx'
|
|
||||||
inputs:
|
|
||||||
testResultsFormat: VSTest
|
|
||||||
testResultsFiles: '**/xunit.trx'
|
|
||||||
Reference in New Issue
Block a user