mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -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:
|
||||
command: test
|
||||
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
|
||||
displayName: 'dotnet test test/Microsoft.Kusto.ServiceLayer.UnitTests'
|
||||
inputs:
|
||||
command: test
|
||||
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
|
||||
displayName: 'npm install -g gulp-cli'
|
||||
@@ -210,10 +212,4 @@ steps:
|
||||
command: push
|
||||
packagesToPush: '$(Build.SourcesDirectory)/artifacts/nugetPackages/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
||||
publishVstsFeed: '2191dd5f-4aec-491b-ac50-568bbc331c8a'
|
||||
allowPackageConflicts: true
|
||||
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish Test Results **/xunit.trx'
|
||||
inputs:
|
||||
testResultsFormat: VSTest
|
||||
testResultsFiles: '**/xunit.trx'
|
||||
allowPackageConflicts: true
|
||||
Reference in New Issue
Block a user