

I don't like that because doesn't populate the "Code coverage" tab on the build.

That will ensure the tests are executed in parallel Projects: '**/**.Tests.csproj' # if multiple test projects are to be executed, create a dirs.proj and use it here. task: 'DotNetCoreCLI Test with report (.coverage format)'

if I switch the test task to coverlet in this way: So the task with that assemblyfilters field fix the problem (when is used the native microsoft code coverage). In the "code coverage" tab I see this:Īnd in the Summary I see the same %. This works well and pubblish tests and code coverage. Please note that I set a variable = true and use a preview "" nuget package (17.1.0-preview-20211118-03, as indicated here) ReportDirectory: $(Build.SourcesDirectory)/TestResults/Coverage/Reports Reporttypes: 'HtmlInline_AzurePipelines_Dark Cobertura'Īssemblyfilters: '+MyOrganization.** -MyOrganization.**.Tests' Targetdir: '$(Build.SourcesDirectory)/TestResults/Coverage/Reports' task: '$(Build.SourcesDirectory)/TestResults/Coverage/**/**.cobertura.xml' Quick activating of debug logging for your User, Automated Process, Integration Platform User.- task: 'DotNetCoreCLI Test with report (cobertura format)'Īrguments: '-no-restore -collect "Code Coverage" -logger trx -results-directory "TestResults/Coverage/" - .Format=cobertura' Supported Metadata: flow, field, validation Rule, flexi page, profile, permission set, permission set group, class, trigger, recordtype, layout Quick opening metadata in SFDC from xml files. Tip: disable retrieve-test-code-coverage from settings to speed up your test. Change the colors of highlighted lines from vscode preferences to fit perfectly your vscode theme.Select the name test method and highlight covered/uncovered lines.Open Apex class to check and Run command "SPB: Get Coverage".(Contact me on My Linkedin for any ideas or suggestions) Get Total Coverage and single methods test coverage of your Apex Classes/Triggers as in Salesforce Developer Console. Boost your productivity on Salesforce with new VsCode commands.
