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

twister: ztest: short test case names on --no-detailed-test-id #82302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

golowanow
Copy link
Member

@golowanow golowanow commented Nov 28, 2024

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, and sleep.usleep test Case where sleep is its Ztest suite name and usleep is Ztest test name.
With detailed-id: tests/kernel/sleep/kernel.common.timing and kernel.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.

@golowanow
Copy link
Member Author

rebased resolving conflicts with #82043

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, the same Suite name,
and 'sleep.usleep' test Case (where 'sleep' is its Ztest suite name
and 'usleep' is Ztest test name.

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.

Signed-off-by: Dmitrii Golovanov <[email protected]>
@golowanow golowanow force-pushed the twister_testcase_shortid_20241127 branch from 0df70f9 to cacd64a Compare November 29, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Testsuite Testsuite area: Twister Twister Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants