Enhance Test Case Generator with Descriptive Test Names #474
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thematrixRow
struct. ThegenerateTestName
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