Replies: 11 comments 5 replies
-
@PerMac maybe attach the PDF in here instead of the external link |
Beta Was this translation helpful? Give feedback.
-
seems reasonable in general with the following comments:
So we need a better way to describe those and keep things consistent. There are also tests that are not ztest based which follow the same model.
testsuite, classname and name need to reflect whatever we have in the proposal, so testsuite would be the actual testsuite for example. When you run multiple testsuite on a platform, we need to end up with multiple testsuite in the XML file. testsuite could be whatever we have in the source file, for example here:
so, test_semaphore. or semaphore or some other name we can come up with. |
Beta Was this translation helpful? Give feedback.
-
I still want to suggest to add "test_" back to the test case name in junit file. For example, kernel.semaphore.**test_**sem_queue_mutual_exclusion. |
Beta Was this translation helpful? Give feedback.
-
The proposal seems fine, but I don't think the I agree on other parts of the proposal. |
Beta Was this translation helpful? Give feedback.
-
I saw @nashif using the name "test app" in the testing channel on Slack. Maybe it is a better name for "[test] configuration [instance]" from my proposal? IMO "test app" feels more intuitive, as something that can be executed on a device/qemu? |
Beta Was this translation helpful? Give feedback.
-
to move forward with this:
|
Beta Was this translation helpful? Give feedback.
-
@PerMac was toying with output from twister based on recent proposed changes to terminology can have the following output for
Please give feedback. |
Beta Was this translation helpful? Give feedback.
-
I like the new output. The thing I caught is that the structure for samples don't match (BTW how it ended in the report???): In addition, I would opt for adding .default to the scenario name if there is only module.submodule in the name. I believe it would make it cleaner, that the cases like below are on the same level, just differ by the scenario (for me it looks like .no_timeslicing is at lower level due to parent.child structure in objective languages) |
Beta Was this translation helpful? Give feedback.
-
The above relates already to the second file |
Beta Was this translation helpful? Give feedback.
-
@nashif I think there still exists differentiation on sample.yaml and tests.yaml in you PR, right? Any reasons why keeping both of them? Maybe we can unify both names to tests.yaml? Those are treated the same in twister, no? |
Beta Was this translation helpful? Give feedback.
-
Hi. As it was already seen by users (#30100), the nomenclature used in testing with Twister is confusing. The same "object" can be referred to by different names and there still exists some wording issues in Twister output. I created a small presentation (Zephyr test hierarchy and nomenclature.pdf ) showing the structure of tests and the names I suggest we can start using to avoid confusion. Most of the naming is already used in zephyr, however, not consistently. One of the currently most confusing is "test case" https://docs.zephyrproject.org/latest/guides/test/twister.html#test-cases. The presentation also explains the current output of Twister, what and how is counted, and what errors are still present there.
The goal of this discussion is to define/agree on the testing nomenclature used at different levels. Once it is done we can start fixing the documentation so the naming is consistent.
I think that we can also have here a good place to discuss what and how detailed we would like to have in the twister output.
In the presentation, I put in square brackets optional expansions of names. I think that in the documentation it is better to use the full name to reduce confusion. I tried to sort it out in a way that short names are unique for each "object".
Beta Was this translation helpful? Give feedback.
All reactions