0
Commit Graph

13 Commits

Author SHA1 Message Date
Raphael Kubo da Costa
310c40c8c9 ios: Update unit test documentation
- Make run.py's docstring match what currently works (i.e. no
  xcodebuild/ intermediate directory, pass --iossim).

- In the main testing.md document, point to the run_<foo> wrapper script
  and given an example. The previous instructions from 2017 said one
  just needed to run the unit tests directly, which is not true.

Change-Id: I8babef7dc0ed87b316b22bba8fb7b4ae6a037dd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6185886
Commit-Queue: Yue She <yueshe@google.com>
Auto-Submit: Raphael Kubo da Costa <kubo@igalia.com>
Reviewed-by: Yue She <yueshe@google.com>
Cr-Commit-Position: refs/heads/main@{#1408985}
2025-01-21 07:25:56 -08:00
Stepan Khapugin
d8ca0adaab [Code Health][iOS] Move ios/c/b/metrics to model subfolder
To simplify the folder hierarchy on iOS and have a clearer layer
separation, all the files in ios/c/b/<foo>/ will be moved to
ios/c/b/<foo>/model/ to showcase that they are model files.

Bug: 1319852
Low-Coverage-Reason: LARGE_SCALE_REFACTOR Only moves files
Change-Id: I6ce3887be185a8e9af2a155e61da582d3fedef12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5023898
Reviewed-by: Dan H <harringtond@chromium.org>
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Auto-Submit: Stepan Khapugin <stkhapugin@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Reviewed-by: Carlos Knippschild <carlosk@chromium.org>
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1229862}
2023-11-28 12:49:06 +00:00
Avi Drissman
bd19b34da1 Remove ARC boilerplate in /docs
Update the docs to remove references to the ARC boilerplate no longer
being used.

Bug: 1468376
Change-Id: I576890ee156c124faa2ef4269d96829c84941238
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4748526
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1179172}
2023-08-03 19:08:30 +00:00
Avi Drissman
6f3be6029f Remove redundant ARC configuration in /docs
ARC is now enabled by default, so enabling it at the target level is
redundant and can be removed.

Bug: 733237
Change-Id: Iddb8d387588f5c21dd25659780bee29b79800075
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4721630
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1175577}
2023-07-26 18:56:25 +00:00
Victor Hugo Vianna Silva
703246bfef Document how to run iOS egtests with --enable-features
Bug: None
Change-Id: I0cdd4290f44d8f4ba1bb6ce960a389e875c1cb7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4660514
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Victor Vianna <victorvianna@google.com>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/main@{#1165919}
2023-07-05 14:06:46 +00:00
Cameron Higgins
0e35019b57 Refactors dependencies on Earl Grey.
Earl Grey has changed the file name of a file we widely import across the codebase. To prepare for that roll of EG2 ios/testing/earl_grey/earl_grey_test.h will be used as an umbrella header for the EG2 test support library within ios code. ios/testing/earl_grey/earl_grey_test.h will import the EG2 test's umbrella header.

Dependencies on "//ios/third_party/earl_grey2:test_lib" are replaced with "//ios/testing/earl_grey:eg_test_support+eg2" if that dependency is not already present.

Bug: 1420367
Change-Id: I1fd8fbc49d4a2aeb36fe504a23701376662f28b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4303486
Reviewed-by: Lindsay Pasricha <lindsayw@chromium.org>
Commit-Queue: Cameron Higgins <cameronhiggins@google.com>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1120040}
2023-03-21 17:43:45 +00:00
Arthur Milchior
54e9dc23cd Make testing example consistent with actual code
Change-Id: I57f81a9262836d182e7866f6698992f8970751c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3904268
Commit-Queue: Arthur Milchior <arthurmilchior@google.com>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1049616}
2022-09-21 13:41:52 +00:00
Ernesto Izquierdo Clua
ab3923fdc8 Added missing quotation marks in ios testing documentation
Change-Id: I220b461c1d734a51f3f906380e4f0cef773b86a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3498529
Reviewed-by: Tommy Martino <tmartino@chromium.org>
Commit-Queue: Ernesto Izquierdo Clua <eic@google.com>
Cr-Commit-Position: refs/heads/main@{#976376}
2022-03-01 20:42:15 +00:00
Sylvain Defresne
a852434c65 [ios]Use the same pattern to define EarlGrey stubs
Test modules needs to have a stub version of the interface class
available to satisfy the linker. This stub is declared with the
macro GREY_STUB_CLASS_IN_APP_MAIN_QUEUE.

Xcode code completion is broken if the macro is not followed by
a semi-colon, but clang complains about trailing semi-colon in a
place where it is not required.

To bypass this issue, for each foo_interface.h file, create a
foo_interface_stub.mm file containing just the macro call. It
also avoid putting the stub declaration in a random source file.

Fix some naming inconsistency in file/target names.

Bug: 1015113
Change-Id: I6596575e8b7f8c0fac42fc8aace1568cecd69dd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3222908
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Ewann Pellé <ewannpv@chromium.org>
Reviewed-by: Ewann Pellé <ewannpv@chromium.org>
Cr-Commit-Position: refs/heads/main@{#931916}
2021-10-15 07:53:39 +00:00
Sylvain Defresne
8efa3d1447 [ios] Remove definition of CHROME_EARL_GREY_2 macro
The macro is no longer used (it was there to facilitate the
transition from EarlGrey to EarlGrey2) and can be removed.

Bug: none
Change-Id: Iae7b37b1f6e38388a5f566af75d01988fb7d7bd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3222939
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: David Jean <djean@chromium.org>
Reviewed-by: David Jean <djean@chromium.org>
Cr-Commit-Position: refs/heads/main@{#931459}
2021-10-14 12:01:05 +00:00
John Palmer
046f987e02 [COIL] Change chromium code search type links to use main rather than master for docs
See this doc: go/chromium-coil-change for more info
    BUG=1210385

Change-Id: I6cd8548301e360bae8e71384dbd8ef11aa6c985f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2902904
Reviewed-by: My Nguyen <myy@chromium.org>
Commit-Queue: My Nguyen <myy@chromium.org>
Auto-Submit: John Palmer <jopalmer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#885851}
2021-05-24 01:24:56 +00:00
Zhaoyang Li
270020462a [iOS] Add doc around creating EG2 tests.
Includes step by step instructions of writing a new test, talking with
app from test, add new tests to suites, running tests.

Bug: None
Change-Id: I39124524fae4bc56c9f3fbe02bca7d9387bdfefb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503809
Commit-Queue: Zhaoyang Li <zhaoyangli@chromium.org>
Auto-Submit: Zhaoyang Li <zhaoyangli@chromium.org>
Reviewed-by: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821486}
2020-10-27 23:07:29 +00:00
Mike Baxley
47db7d8f71 Add Chromium for iOS test documentation.
Create documentation on how to run different iOS test suites.

TBR: huangml
Bug: 769753
Change-Id: I1e63c6c603a10389ccc89050b01e075fd08e39ae
Reviewed-on: https://chromium-review.googlesource.com/772784
Reviewed-by: Mike Baxley <baxley@chromium.org>
Commit-Queue: Mike Baxley <baxley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517095}
2017-11-16 15:57:17 +00:00