[Swift in WebKit] Work towards integrating Swift Testing into WebKit#60626
Conversation
|
EWS run on previous version of this PR (hash d3d8527) Details
|
d3d8527 to
82a52d5
Compare
|
EWS run on previous version of this PR (hash 82a52d5) Details |
82a52d5 to
25dc86a
Compare
|
EWS run on previous version of this PR (hash 25dc86a) Details |
aprotyas
left a comment
There was a problem hiding this comment.
LGTM, I wouldn't disable the test unless it's timing out?
| @@ -155,7 +155,7 @@ struct WebPageNavigationTests { | |||
| } | |||
| } | |||
|
|
|||
| @Test | |||
| @Test(.disabled("This test is too slow")) | |||
There was a problem hiding this comment.
too slow that it times out? We do have other API tests that take multiple seconds
There was a problem hiding this comment.
It has a hard-coded delay of 10 seconds, which is unacceptable for CI (and there’s no way to not have a hard coded delay because observing the sequence itself modifies the result lol)
25dc86a to
cc5731d
Compare
|
EWS run on current version of this PR (hash cc5731d) Details
|
https://bugs.webkit.org/show_bug.cgi?id=309952 rdar://172543926 Reviewed by Abrar Rahman Protyasha. This is step two of three for fully integrating Swift Testing into WebKit. Now, to run these native tests locally, all you have to do is press Command+U in Xcode! * Tools/TestWebKitAPI/Configurations/TestWebKitAPIBundle.xcconfig: * Tools/TestWebKitAPI/TestBundle/GoogleTests.mm: Removed. Remove this currently unused, experimental way of running GTests as XCTests, since this is not a goal at present and gets in the way of being able to run the test plan completely. * Tools/TestWebKitAPI/TestBundle/TestWebKitAPI.xctestplan: - Disable code coverage. This is a fairly useless metric for these limited tests, and also substantially increases how long the tests take to run. - Disable parallelization, since WebKit is always used on the main thread * Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Let Xcode sort some files. * Tools/TestWebKitAPI/Tests/WebKit Swift/WebPageNavigationTests.swift: * WebKit.xcworkspace/xcshareddata/xcschemes/Everything up to WebKit + Tools.xcscheme: Use the test plan for the Test action of the "Everything up to WebKit + Tools" scheme. * Tools/TestWebKitAPI/Tests/WebKit Swift/WebPageNavigationTests.swift: Disable a slow test. Canonical link: https://commits.webkit.org/309343@main
cc5731d to
53d30e1
Compare
|
Committed 309343@main (53d30e1): https://commits.webkit.org/309343@main Reviewed commits have been landed. Closing PR #60626 and removing active labels. |
🛠 mac-AS-debug
53d30e1
cc5731d
🛠 win🧪 wpe-wk2🧪 win-tests🧪 api-mac🧪 ios-wk2-wpt🧪 api-mac-debug🧪 api-ios🧪 gtk-wk2🛠 🧪 merge🧪 mac-wk2-stress🧪 mac-intel-wk2