Gil 12c0ff6905 Fix GoogleTest failure mechanism on CI (#5444) 6 éve
..
Example a465c951bf Upgrade gRPC-C++ to 1.28.0 (#4312) 6 éve
Protos a465c951bf Upgrade gRPC-C++ to 1.28.0 (#4312) 6 éve
Source 7242a00607 Remove `firebase/firestore` from paths in Firestore/core (#5374) 6 éve
Swift 595fa9713a Limit Swift line lengths to 100 (#5315) 6 éve
core 12c0ff6905 Fix GoogleTest failure mechanism on CI (#5444) 6 éve
fuzzing 7242a00607 Remove `firebase/firestore` from paths in Firestore/core (#5374) 6 éve
third_party 595fa9713a Limit Swift line lengths to 100 (#5315) 6 éve
CHANGELOG.md 1a86177f1d Manually specify the authorization header (#5420) 6 éve
CMakeLists.txt 2a8d069b77 Run integration tests from CMake on mac (#4276) 6 éve
README.md 372dc2d19f Add LLDB type summaries for Firestore types (#5407) 6 éve
test.sh 5930ad2fee Factor out a universal build script (#884) 8 éve

README.md

Usage

  • Install prerequisite software
  • Set up a workspace via CocoaPods

    $ cd Firestore/Example
    $ pod update
    $ open Firestore.xcworkspace
    
  • Select the Firestore_Tests_iOS scheme

  • ⌘-u to build and run the unit tests

Improving the debugger experience

You can install a set of type formatters to improve the presentation of Firestore internals in LLDB and Xcode. Add the following to your ~/.lldbinit file:

command script import ~/path/to/firebase-ios-sdk/scripts/lldb/firestore.py

(substitute the location of your checkout of the firebase-ios-sdk.)

Running Integration Tests

  • Set up a GoogleServices-Info.plist file in Firestore/Example/App.
  • In Xcode select the Firestore_IntegrationTests_iOS scheme
  • ⌘-u to build and run the integration tests

Running Integration Tests - using the Firestore Emulator

Note: this does not give full coverage, but is much faster than above. b/hotlists/1578399 tracks outstanding issues.

  • Ensure that GoogleServices-Info.plist is back in its default state (git checkout Firestore/Example/App/GoogleServices-Info.plist).
  • Install the Firebase CLI. Essentially:

    npm install -g firebase-tools
    
  • Install the Firestore emulator. Essentially:

    firebase setup:emulators:firestore
    
  • Run the emulator

    firebase serve --only firestore
    
  • In Xcode select the Firestore_IntegrationTests_iOS scheme

  • ⌘-u to build and run the integration tests

Building Protos

Typically you should not need to worrying about regenerating the C++ files from the .proto files. If you do, see instructions at Protos/README.md.