docs/enhanced-test-reporting.md
This document explains the enhanced test reporting capabilities that have been added to the GitHub Actions workflow.
The GitHub Actions workflow has been enhanced to provide detailed, individual test results for all test suites in the Workflow Core project. This addresses the requirement to see detailed, individual test results from tests run by GitHub workflows.
--verbosity normal to --verbosity detailed--logger "console;verbosity=detailed" for comprehensive console output--logger "trx;LogFileName={TestSuite}.trx" to generate XML test result filesdorny/test-reporter@v1 action to display test results in the GitHub UIBefore (old format):
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Passed! - Failed: 0, Passed: 25, Skipped: 0, Total: 25
After (enhanced format):
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Passed WorkflowCore.UnitTests.Services.ExecutionResultProcessorFixture.should_advance_workflow [< 1 ms]
Passed WorkflowCore.UnitTests.Services.ExecutionResultProcessorFixture.should_branch_children [2 ms]
Failed WorkflowCore.UnitTests.Services.SomeTest.example_failing_test [15 ms]
Error Message:
Assert.Equal() Failure
Expected: True
Actual: False
Stack Trace:
at WorkflowCore.UnitTests.Services.SomeTest.example_failing_test() in /path/to/test.cs:line 42
Test Run Summary:
Total tests: 25
Passed: 24
Failed: 1
Skipped: 0
Each test job now produces downloadable artifacts:
unit-test-results: Unit test TRX files and logsintegration-test-results: Integration test TRX files and logsmongodb-test-results: MongoDB-specific test resultsmysql-test-results: MySQL-specific test resultspostgresql-test-results: PostgreSQL-specific test resultsredis-test-results: Redis-specific test resultssqlserver-test-results: SQL Server-specific test resultselasticsearch-test-results: Elasticsearch-specific test resultsoracle-test-results: Oracle-specific test resultsAfter test execution, the following files are generated:
test-results/
├── UnitTests.trx
├── IntegrationTests.trx
├── MongoDBTests.trx
├── MySQLTests.trx
├── PostgreSQLTests.trx
├── RedisTests.trx
├── SQLServerTests.trx
├── ElasticsearchTests.trx
└── OracleTests.trx
Each TRX file contains detailed XML data about the test execution results that can be consumed by various reporting tools and integrated development environments.