Skip to content

Commit

Permalink
Fix tests + specify package as scheme as it contains the test target
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed May 23, 2024
1 parent fd834b9 commit d52db7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
with:
xcode-version: ${{ matrix.xcode }}
- name: Build and Test
run: xcodebuild test -scheme TelemetryClient ${{ matrix.xcodebuildCommand }}
run: xcodebuild test -scheme TelemetryClient-Package ${{ matrix.xcodebuildCommand }}
4 changes: 2 additions & 2 deletions Tests/TelemetryClientTests/TelemetryClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ final class TelemetryClientTests: XCTestCase {
func testSending() {
let YOUR_APP_ID = "44e0f59a-60a2-4d4a-bf27-1f96ccb4aaa3"

let configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID)
TelemetryDeck.initialize(configuration: configuration)
let config = TelemetryManagerConfiguration(appID: YOUR_APP_ID)
TelemetryDeck.initialize(config: config)
TelemetryDeck.signal("appOpenedRegularly")
TelemetryDeck.signal("userLoggedIn", customUserID: "email")
TelemetryDeck.signal("databaseUpdated", parameters: ["numberOfDatabaseEntries": "3831"])
Expand Down

0 comments on commit d52db7e

Please sign in to comment.