-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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: add option to ignore skipped tests in reports #40780
Conversation
cc8a7ee
to
e7d4bd4
Compare
scripts/pylib/twister/twisterlib.py
Outdated
# Multiple 'property' can be added to 'properties' | ||
# differing by name and value | ||
ET.SubElement(eleTSPropetries, 'property', name="version", value=version) | ||
if not no_skipped or total != skips: |
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.
or total != skips:
will not cause it showing some skipped tests ?
scripts/pylib/twister/twisterlib.py
Outdated
# Multiple 'property' can be added to 'properties' | ||
# differing by name and value | ||
ET.SubElement(eleTSPropetries, 'property', name="version", value=version) | ||
if not no_skipped or total != skips: |
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.
might be able to eliminate the double-negative if you rename the variable to report_skipped
.
b3bdfda
to
682fd94
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
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.
Needs a rebase, but LGTM
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.
Could you please add the same option to json and csv reports for consistency? Sorry for so late review, I missed this PR somehow.
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.
I changed to approve as I don't wont to block this PR. However, the consistency in the reports is important, so please add such option also for json and csv
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.
I think we will need this feature, and this only enabled when --no-skipped used.
@nashif please rebase |
With --no-skipped-report, twister will skip over all tests marked as skipped (filtered) in the junit report. This is useful for CI where have 1000s of filtered tests that appear in the report and in some cases cause tools parsing the output to fail or provide incomplete results. Fixes zephyrproject-rtos#38179 Signed-off-by: Anas Nashif <[email protected]>
Do not report skipped tests to reduce size of report and to make it parseable. Signed-off-by: Anas Nashif <[email protected]>
682fd94
to
cbeacb3
Compare
With --no-skipped, twister will skip over all tests marked as skipped
(filtered) in the junit report.
This is useful for CI where have 1000s of filtered tests that appear in
the report and in some cases cause tools parsing the output to fail or
provide incomplete results.
Fixes #38179
Signed-off-by: Anas Nashif [email protected]