Comments (2)
from azure-pipelines-tasks.
It appears that after running a multitarget build and test, the code coverage for .NET Framework 4.6.2 (net462) is not being published. Let's troubleshoot this issue.
-
Check Output Folder: Ensure that the output folder for your test results and code coverage reports is correctly specified. In your VSTest tasks, you're using
$(System.DefaultWorkingDirectory)\out\$(BuildConfiguration)
as the search folder. Confirm that the test results and coverage files are indeed generated in this location. -
Verify Test Assembly Path: In the VSTest tasks, you've specified the test assembly pattern for both .NET 6 and .NET Framework 4.6.2. Make sure that the wildcard pattern
**\net462\Tests\Async.Bridges.*Tests.dll
matches the actual location of your test assemblies. Double-check the path and ensure that the test DLLs are present in the expected directory. -
Code Coverage Settings: Ensure that your
runSettingsFile
(located atsrc/Default.runsettings
) includes the necessary configuration for code coverage. Specifically, check if the<DataCollector>
section includes theCodeCoverage
data collector. If not, add it to the run settings file. -
Permissions and Access: Verify that the build agent or self-hosted environment has the necessary permissions to read/write files in the specified output folder. Sometimes issues arise due to insufficient permissions.
-
Logging and Diagnostics: Enable detailed logging and diagnostics for the VSTest tasks. Set
diagnosticsEnabled: true
to get more information about what's happening during the test execution. Review the logs for any relevant error messages or warnings related to code coverage. -
Rerun Failed Tests: You've configured the tasks to rerun failed tests (
rerunFailedTests: true
). If any tests fail during the initial run, they will be retried. Check if any tests are consistently failing and investigate why. -
Thresholds and Minimum Expected Tests: You've set thresholds for rerunning failed tests (
rerunFailedThreshold
) and specified a minimum expected test count (minimumExpectedTests
). Ensure that these values align with your expectations. If the minimum expected tests are not met, the build may fail. -
Missing Value for
rerunFailedThreshold
: It seems there's a missing value forrerunFailedThreshold
in your configuration. Please provide the appropriate value (e.g.,20
as shown in your .NET 6 task).
from azure-pipelines-tasks.
Related Issues (20)
- [Question]: AzureVmssDeployment failed after disable local auth of the Storage Account HOT 1
- [BUG]: Azure File Copy Task (Version 6) is breaking on pipeline using Self hosted agent with error 'The term 'azcopy' is not recognized. HOT 10
- [enhancement]: reopen #10125
- [BUG]: issue on AZ module HOT 7
- [BUG]: HelmDeploy@0 ignores environment
- [enhancement]: Allow configure Kubernetes@x task output as secret
- [BUG]: Invoke-Sqlcmd : Could not load file or assembly 'Azure.Core, Version=1.6.0.0, Culture=neutral HOT 2
- [Question]: AzureRmWebAppDeployment@4 and XmlTransform - should it work when using stages?
- [BUG]:Nothing will be added to build artifact file HOT 1
- [BUG]: Azure IoT Edge v2 - Failed to fetch container registry authentication token HOT 11
- [enhancement]: jdk source add microsoft option
- [BUG]: The system cannot find the file specified HOT 1
- [REGRESSION]: Azure file copy fails on one Agent in Pool HOT 17
- [enhancement]: Run Maven@4 task in detached mode
- [BUG]: DockerCompose task compatibility mode issue HOT 11
- [BUG]: AzurePowerShell@5 does not set environment variables on Windows HOT 2
- [REGRESSION]: DockerCompose@0 no longer supports default projectName for GitHub Repostitories HOT 21
- [REGRESSION]: Secrets cannot contain multiple lines npmAuthenticate HOT 18
- [BUG]: Object parameter between pipeline and template converts "3.10" to "3.1" HOT 4
- [BUG]: Passing tests using "DynamicData" not recognized as passed in test run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.