dotnet / dotnet/arcade

enablePublishTestResults=true introduces build warnings

Open
#16,000 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
729
Forks
397
Avg merge
3d 15m
Merged PRs (30d)
149

Description

Enabling enablePublishTestResults will likely always introduce build warnings in a build. This is because it supports both `TRX` and `XUnit` test results. Unless you have both, one of the `Publish TRX Test Results` or `Publish XUnit Test Results` steps will cause a warning because no matching files were found. This is annoying for those who like clean builds and would like to avoid these warning headers from always appearing.

Image

One way to solve this would be to expose an option for the consuming repo to specify which test results type to support. By default it could be *.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.