-
Notifications
You must be signed in to change notification settings - Fork 8.4k
doc: Add information on Twister Statuses #80625
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
doc: Add information on Twister Statuses #80625
Conversation
79d414a to
dcd43ab
Compare
0ad5050 to
69f7f5b
Compare
golowanow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for so many notes - mostly to improve reader's experience (IMO).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to use these names consistently
| - Suite, Case | |
| - TestSuite, TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added both names to the Tip section and changed all Test Suite, Test Case, etc. into Suite, Case, etc., respectively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **In-code** and **In-text** columns should the names of a given status. | |
| If one is not a Twister developer, the in-text name should suffice. | |
| It is the name used in the JSON reports. | |
| **In-code** and **In-report** are the naming contexts of a given status: the former is rather internal for Twister and appears in logs, whereas the latter is used in the JSON reports. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with bullets
| ``NONE`` (A starting status for Cases and Suites) and | |
| ``STARTED`` (Indicating an in-progress Case). | |
| - ``NONE`` - an initial status for Cases and Suites, | |
| - ``STARTED`` - Indicating an in-progress Case. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, will have to see how it interacts with the Note box.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't play nicely with the box, had to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note the proposed changes in the text itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this paragraph almost the same as what is in the 'Possible Twister Statuses' table and can be moved there ?
If a state meaning is different for TestSuite vs. TestCase they can be split into table columns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the first sentence, the general Status description, is very similar to the table, in this section I aimed to explain why some combinations are possible and others are not.
When a documentation reader encounters the combination table, I'd assume they'd like to ask why certain combinations are impossible. So this needs to be after the combination table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately, having two descriptions tend to diverge from each other not clarifying much,
for example FILTER:
A static or runtime filter has eliminated the test from the list of tests to use.This status indicates that the whole Suite has been statically filtered out of a given Twister run. Thus, any Case within it should also have such a status.
The second sentence don't mention runtime filtering and it is still vague why other combinations are impossible (if it is the goal to answer here), e.g. together withPASS- why Suite: PASS and Case: FILTER is impossible ? same forNOTRUN.
SKIP is another example as it explains only one combination, isn't it ?
69f7f5b to
cbf8102
Compare
cbf8102 to
0f20a39
Compare
Current implementation of Twister does not allow for such combinations. Mainly because the runnability is decided on a per-Suite level and runnability is the deciding factor for the NOTRUN status. It is not, however, theoretically impossible - if we ever check runnability for a singular Case, those could be proper combinations. It would require significant Twister changes which are not planned, however, so I'll mark them as not proper. |
Currently, Twister Statuses are only useful for the initiated, save for the very basics. This is in opposition to the fact that they are the main thing end users take into account when checking their Twister run reports. In order to make Statuses more useful for the end user, a new documentation page has been created, elucidating the full meaning of all Statuses. Signed-off-by: Lukasz Mrugala <[email protected]>
0f20a39 to
2c09c9f
Compare
| In practice, most users will be interested in Statuses | ||
| of Instances and Cases after the conclusion of their Twister runs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In practice, most users will be interested in Statuses | |
| of Instances and Cases after the conclusion of their Twister runs. |
IMO it is better to remove this from here to allow more clarification of what 'instance' is from user's perspective later in the 'nomenclature' section below.
| ``TestInstance``, also called Instance, is a Suite on some platform. | ||
| Twister typically reports its results for Instances, | ||
| despite them being called "Suites" there. | ||
| If a status is marked as applicable for Suites, it is also applicable for Instances. | ||
| As the distinction between them is not useful in this section, | ||
| whenever you read "Suite", assume the same for Instances. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twister summary output uses test configurations executed on platforms for 'instances'
| :header-rows: 1 | ||
|
|
||
| * - In-code | ||
| - In-text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - In-text | |
| - In-report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note the proposed changes in the text itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately, having two descriptions tend to diverge from each other not clarifying much,
for example FILTER:
A static or runtime filter has eliminated the test from the list of tests to use.This status indicates that the whole Suite has been statically filtered out of a given Twister run. Thus, any Case within it should also have such a status.
The second sentence don't mention runtime filtering and it is still vague why other combinations are impossible (if it is the goal to answer here), e.g. together withPASS- why Suite: PASS and Case: FILTER is impossible ? same forNOTRUN.
SKIP is another example as it explains only one combination, isn't it ?
|
@LukaszMrugala , release date is Nov 15. I would like to merge this in sometime today. |
golowanow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 let's have it as it is for now

Currently, Twister Statuses are only useful for the initiated. This is in opposition to the fact that they are the main thing end users take into account when checking their Twister run reports.
In order to make Statuses more useful for the end user, a new documentation page has been created, elucidating the full meaning of all Statuses.