Skip to content

Commit 79a71eb

Browse files
authored
Support Runtime Warning test node type on Xcode 26 XCTest results (#477)
1 parent 247db0f commit 79a71eb

File tree

6 files changed

+42
-23
lines changed

6 files changed

+42
-23
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
Version 0.61.1
2+
-------------
3+
4+
This release contains changes from [PR #477](https://github.com/codemagic-ci-cd/cli-tools/pull/477).
5+
6+
**Bugfixes**
7+
- Support `Runtime Warning` test node type for XCTest results which was added by Xcode 26. Fixes actions
8+
- `xcode-project run-tests`,
9+
- `xcode-project test-summary`,
10+
- `xcode-project junit-test-results`.
11+
12+
**Development**
13+
- Rename submodule `xcode_16_xcresult` to `xcresult` in package `codemagic.models.xctest.xcresult`.
14+
115
Version 0.61.0
216
-------------
317

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "codemagic-cli-tools"
3-
version = "0.61.0"
3+
version = "0.61.1"
44
description = "CLI tools used in Codemagic builds"
55
readme = "README.md"
66
authors = [

src/codemagic/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "codemagic-cli-tools"
22
__description__ = "CLI tools used in Codemagic builds"
3-
__version__ = "0.61.0.dev"
3+
__version__ = "0.61.1.dev"
44
__url__ = "https://github.com/codemagic-ci-cd/cli-tools"
55
__licence__ = "GNU General Public License v3.0"

src/codemagic/models/xctests/xcresult/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
from .legacy_xcresult import TestAssociatedError
3636
from .legacy_xcresult import TestFailureIssueSummary
3737
from .legacy_xcresult import TypeDefinition
38-
from .xcode_16_xcresult import XcConfiguration
39-
from .xcode_16_xcresult import XcDevice
40-
from .xcode_16_xcresult import XcSummary
41-
from .xcode_16_xcresult import XcTestFailure
42-
from .xcode_16_xcresult import XcTestInsight
43-
from .xcode_16_xcresult import XcTestNode
44-
from .xcode_16_xcresult import XcTestNodeType
45-
from .xcode_16_xcresult import XcTestPlanConfiguration
46-
from .xcode_16_xcresult import XcTestResult
47-
from .xcode_16_xcresult import XcTests
48-
from .xcode_16_xcresult import XcTestStatistic
38+
from .xcresult import XcConfiguration
39+
from .xcresult import XcDevice
40+
from .xcresult import XcSummary
41+
from .xcresult import XcTestFailure
42+
from .xcresult import XcTestInsight
43+
from .xcresult import XcTestNode
44+
from .xcresult import XcTestNodeType
45+
from .xcresult import XcTestPlanConfiguration
46+
from .xcresult import XcTestResult
47+
from .xcresult import XcTests
48+
from .xcresult import XcTestStatistic

src/codemagic/models/xctests/xcresult/xcode_16_xcresult.py renamed to src/codemagic/models/xctests/xcresult/xcresult.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class XcTestNodeType(str, enum.Enum):
3939
ATTACHMENT = "Attachment"
4040
EXPRESSION = "Expression"
4141
TEST_VALUE = "Test Value"
42+
RUNTIME_WARNING = "Runtime Warning"
4243

4344

4445
@dataclasses.dataclass
@@ -56,7 +57,9 @@ def from_dict(cls: Type[XcModelT], d: Dict[str, Any]) -> XcModelT:
5657
class XcSummary(XcModel):
5758
"""
5859
Model definitions for `xcresulttool get test-results summary` output.
59-
Check schema with `xcrun xcresulttool help get test-results summary`.
60+
Check schema with:
61+
- Xcode 16.x: `xcrun xcresulttool help get test-results summary`
62+
- Xcode 26.x: `xcrun xcresulttool get test-results summary --schema`
6063
"""
6164

6265
title: str
@@ -164,7 +167,9 @@ def from_dict(cls, d: Dict[str, Any]) -> XcTestInsight:
164167
class XcTests(XcModel):
165168
"""
166169
Model definitions for `xcresulttool get test-results tests` output.
167-
Check schema with `xcrun xcresulttool help get test-results tests`.
170+
Check schema with:
171+
- Xcode 16.x: `xcrun xcresulttool help get test-results tests`
172+
- Xcode 26.x: `xcrun xcresulttool get test-results tests --schema`
168173
"""
169174

170175
devices: List[XcDevice]

tests/models/xctests/xcresult/test_xcode_16_xcresult.py renamed to tests/models/xctests/xcresult/test_xcresult.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from codemagic.models.xctests.xcresult import XcTestNode
22
from codemagic.models.xctests.xcresult import XcTestNodeType
3-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcConfiguration
4-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcDevice
5-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcSummary
6-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcTestFailure
7-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcTestPlanConfiguration
8-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcTestResult
9-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcTests
10-
from codemagic.models.xctests.xcresult.xcode_16_xcresult import XcTestStatistic
3+
from codemagic.models.xctests.xcresult.xcresult import XcConfiguration
4+
from codemagic.models.xctests.xcresult.xcresult import XcDevice
5+
from codemagic.models.xctests.xcresult.xcresult import XcSummary
6+
from codemagic.models.xctests.xcresult.xcresult import XcTestFailure
7+
from codemagic.models.xctests.xcresult.xcresult import XcTestPlanConfiguration
8+
from codemagic.models.xctests.xcresult.xcresult import XcTestResult
9+
from codemagic.models.xctests.xcresult.xcresult import XcTests
10+
from codemagic.models.xctests.xcresult.xcresult import XcTestStatistic
1111

1212

1313
def test_load_test_results_summary(test_results_summary_dict):

0 commit comments

Comments
 (0)