Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 29, 2025

  • Analyzed repository structure and current GitHub Actions workflow
  • Identified that the workflow runs multiple test suites (Unit, Integration, and various persistence provider tests)
  • Confirmed that current test output is minimal using dotnet test --verbosity normal
  • Research available test result reporting formats for detailed GitHub Actions output
  • Implement test result reporting improvements
  • Add test result artifacts/reporting
  • Update GitHub Actions workflow to show detailed individual test results
  • Test and validate the enhanced reporting works
  • Clean up artifacts and add proper gitignore rules
  • Fix deprecated actions/upload-artifact version (v3 → v4)

Summary of Changes

Enhanced GitHub Actions Workflow (.github/workflows/dotnet.yml):

  • Detailed Console Output: Changed verbosity from normal to detailed for all test jobs
  • TRX Test Results: Added TRX logger to generate structured XML test result files
  • Test Reporter Integration: Added dorny/test-reporter@v1 to display test results in GitHub UI
  • Test Artifacts: Added artifact upload for all test result files using actions/upload-artifact@v4
  • Individual Job Coverage: Enhanced all 9 test jobs (Unit, Integration, MongoDB, MySQL, PostgreSQL, Redis, SQLServer, Elasticsearch, Oracle)

New Features:

  1. Individual Test Visibility: Each test case shows pass/fail status, execution time, and detailed error information
  2. Structured Test Data: TRX files contain comprehensive test metadata including stack traces
  3. GitHub UI Integration: Test results appear in PR checks with detailed failure information
  4. Downloadable Artifacts: Test result files available for download from each job
  5. Enhanced Debugging: Detailed console output and error messages for faster issue identification

Documentation (docs/enhanced-test-reporting.md):

  • Complete guide to the enhanced test reporting features
  • Examples of before/after output formats
  • Explanation of TRX file structure and benefits
  • Instructions for accessing test results in GitHub UI

Infrastructure:

  • Added test-results/ to .gitignore to prevent test artifacts from being committed
  • Cleaned up temporary test files
  • Updated to use actions/upload-artifact@v4 (latest stable version)

The enhanced workflow will provide detailed, individual test results as requested, making it much easier to identify and debug test failures in GitHub Actions.

Original prompt

I want to be able to see the detailed, individual test results of tests that are run be github workflows.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits September 29, 2025 17:41
Co-authored-by: danielgerlag <2357007+danielgerlag@users.noreply.github.com>
Co-authored-by: danielgerlag <2357007+danielgerlag@users.noreply.github.com>
Copilot AI changed the title [WIP] I want to be able to see the detailed, individual test results of tests that are run be github workflows. Add detailed individual test result reporting to GitHub Actions workflows Sep 29, 2025
Copilot AI requested a review from danielgerlag September 29, 2025 17:43
Copilot finished work on behalf of danielgerlag September 29, 2025 17:43
@danielgerlag
Copy link
Owner

@copilot all the tests failed because: Error: This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v3. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Co-authored-by: danielgerlag <2357007+danielgerlag@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 1, 2025

@copilot all the tests failed because: Error: This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v3. Learn more: https://github.blog/changelo...

Fixed in commit c764721. Updated all 9 occurrences of actions/upload-artifact@v3 to @v4 in the workflow file to resolve the deprecation issue.

Copilot finished work on behalf of danielgerlag October 1, 2025 14:34
@danielgerlag danielgerlag marked this pull request as ready for review October 1, 2025 14:51
@danielgerlag danielgerlag requested a review from glucaci as a code owner October 1, 2025 14:51
@danielgerlag danielgerlag merged commit 76c011c into master Oct 1, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants