Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Issue 2226623003: Adds support for running unittests using XCTest on iOS. (Closed)

Created:
4 years, 4 months ago by rohitrao (ping after 24h)
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds support for running unittests using XCTest on iOS. Modifies the base TestSuite to check if running under XCTest and return early without running tests if so. This allows XCTest to drive running the individual tests, while still allowing the TestSuite to perform setup tasks. BUG=635509 Committed: https://crrev.com/fc9315e90cf523b90010145980f953f86c077a51 Cr-Commit-Position: refs/heads/master@{#410698}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M base/test/test_suite.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M base/test/test_support_ios.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/test/test_support_ios.mm View 1 3 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
rohitrao (ping after 24h)
I'd like to experiment with running unittests directly from xcode on iOS. It's possible to ...
4 years, 4 months ago (2016-08-08 13:21:32 UTC) #2
Paweł Hajdan Jr.
Please get a review from another Mac expert (e.g. Mark Mentovai), and I or another ...
4 years, 4 months ago (2016-08-08 20:48:30 UTC) #8
Mark Mentovai
LGTM, as long as you promise to remove this if your experiments fail. https://codereview.chromium.org/2226623003/diff/1/base/test/test_support_ios.mm File ...
4 years, 4 months ago (2016-08-08 20:55:44 UTC) #9
rohitrao (ping after 24h)
Removing code I can do. I'm more concerned about the case where this actually works ...
4 years, 4 months ago (2016-08-09 11:40:23 UTC) #10
Paweł Hajdan Jr.
LGTM
4 years, 4 months ago (2016-08-09 15:34:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2226623003/20001
4 years, 4 months ago (2016-08-09 16:22:44 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 16:27:49 UTC) #19
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/fc9315e90cf523b90010145980f953f86c077a51 Cr-Commit-Position: refs/heads/master@{#410698}
4 years, 4 months ago (2016-08-09 16:38:56 UTC) #21
Olivier
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2231813002/ by olivierrobin@chromium.org. ...
4 years, 4 months ago (2016-08-10 12:49:03 UTC) #22
rohitrao (ping after 24h)
4 years, 4 months ago (2016-08-10 13:07:19 UTC) #23
Message was sent while issue was closed.
Promise fulfilled already!  Sooner than I expected!

Our upcoming infrastructure injects xctest into every app that runs on the bots,
so my call to getenv() was always returning true.  I'll need to come up with a
better way to put the tests into "xctest mode."

Powered by Google App Engine
This is Rietveld 408576698