Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Test Case Generator with Descriptive Test Names #474

Merged
merged 4 commits into from
Mar 5, 2025

Conversation

okankoAMZ
Copy link
Contributor

@okankoAMZ okankoAMZ commented Mar 4, 2025

Description of the issue

The current implementation of the test case generator does not support generating a descriptive test name for each test case. This makes it difficult to quickly identify the purpose or category of a test from its name.

Description of changes

This change introduces a new field TestName to the matrixRow struct. The generateTestName function is added to generate descriptive test names based on the directory structure of the test cases. The test names are further enhanced by prefixing them with the OS and test type when available.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

The changes have been tested by running the genMatrix function with various test configurations. The generated test names were verified to ensure they accurately represent the directory structure and include the OS and test type when applicable.
Test run: https://github.com/aws/amazon-cloudwatch-agent/actions/runs/13663515237

@okankoAMZ okankoAMZ changed the title Add test name Enhance Test Case Generator with Descriptive Test Names Mar 4, 2025
@okankoAMZ okankoAMZ marked this pull request as ready for review March 4, 2025 22:06
@okankoAMZ okankoAMZ requested a review from a team as a code owner March 4, 2025 22:06
@okankoAMZ okankoAMZ merged commit 112fc71 into main Mar 5, 2025
4 checks passed
@okankoAMZ okankoAMZ deleted the add-test-name branch March 5, 2025 16:14
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.

3 participants