twister: ztest: short test case names on --no-detailed-test-id #82302
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.
Extend
--no-detailed-test-id
command line option: in addition to its current behavior to exclude from a test Suite name its configuration path prefix, also don't prefix each Ztest Case name with its Scenario name.For example:
kernel.common.timing
Scenario name is the same as Suite name, andsleep.usleep
test Case wheresleep
is its Ztest suite name andusleep
is Ztest test name.With detailed-id:
tests/kernel/sleep/kernel.common.timing
andkernel.common.timing.sleep.usleep
respectively.This way both TestSuite and TestCase names follow the same principle having no parent object name prefix.
There is no information loss in Twister reports with this naming: TestSuite is a container object for its TestCases, whereas TestSuite has its configuration path as a property.
Follow-up to review #80088 and recent discussions at the Twster WG meetings.