Uploaded image for project: 'Analytics'
  1. Analytics
  2. ANALYTICS-455

Investigate how to improve unit tests and mock API for Google Analytics 4

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • None

    Description

      Problem: We cannot mock to call API for GA4

      BetaAnalyticsDataClient analyticsDataClient = BetaAnalyticsDataClient.create(analyticsDataSettings)

       in GoogleAnalytics4DataSupplier and GoogleAnalytics4MetadataSupplier, so unit tests are almost depended on GA4ReportingEngine.

       

      Expectation: Improve unit tests and mock API for GoogleAnalytics4DataSupplierTest and GoogleAnalytics4MetadataSupplierTest

      Code coverage should be increased.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                thuy.to Thuy To
                AuthorX
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD