-
Notifications
You must be signed in to change notification settings - Fork 43
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
Update xctest
test result parsing for Xcode 16
#431
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c8c2a13
Add 'xcresulttool get test-reports' output parsing
priitlatt 56b6a56
Fix dictionary joining for Python3.8
priitlatt 12e9760
Refactor test
priitlatt d435daa
Mock datetime
priitlatt 18edd4d
Omit errored tests from results tables
priitlatt 9ea4de3
Prohibit legacy command usages with Xcode 16+
priitlatt 1b34b89
Fix test
priitlatt a3cfd98
Bump version
priitlatt a81273f
Use errors instead of failures in JUnit reports
priitlatt cfc033a
Use error for test cases instead of failure
priitlatt 4cab05b
Fix tests
priitlatt 4abcbd4
Fix legacy check
priitlatt 05dcd15
Fix 'test_is_not_legacy'
priitlatt d944e9f
Do not cache is legacy check return value
priitlatt 8522269
Simplify model definitions
priitlatt b249a40
Remove StrEnum usage
priitlatt dd94aea
Inline conditionals
priitlatt 958c875
Update changelog
priitlatt d115c03
Inlcude properties
priitlatt 8ced5b1
Simplify tests
priitlatt e0fd0ef
Update changelog
priitlatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__title__ = "codemagic-cli-tools" | ||
__description__ = "CLI tools used in Codemagic builds" | ||
__version__ = "0.53.9.dev" | ||
__version__ = "0.54.0.dev" | ||
__url__ = "https://github.com/codemagic-ci-cd/cli-tools" | ||
__licence__ = "GNU General Public License v3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Can you elaborate why we should introduce
Optional[int]
here, instead justreturn 0
?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.
Errors and failures in JUnit XML format are optional. By having optional integer value for those here we can more closely represent the reality. Xcode 16+ does not tell anything about
failed
test cases, there are onlyerrored
tests. So the corresponding JUnit XML test suite should not includefailures
at all for such cases. But if we'd always return0
then it is not possible to differentiate the cases where test suite does not specify this value from those where it is defined but legitemately0
.Ultimately it is to omit undefined failures or errors from the test result overview tables.