Skip to content

Commit

Permalink
chore: update test case add code coverage token
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Apr 10, 2024
1 parent ad9861d commit 78473c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
cd ../../../../
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage .build/Build/Products/Debug-iphonesimulator/Clickstream.o > .build/info.lcov
- name: Upload Test Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: report
files: .build/info.lcov
swift: true
Expand Down
2 changes: 1 addition & 1 deletion Tests/ClickstreamTests/Clickstream/EventRecorderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class EventRecorderTest: XCTestCase {

eventRecorder.submitEvents()
XCTAssertEqual(1, eventRecorder.queue.operationCount)
Thread.sleep(forTimeInterval: 0.5)
Thread.sleep(forTimeInterval: 0.8)
let totalEvent = try dbUtil.getEventCount()
XCTAssertEqual(0, totalEvent)
XCTAssertTrue(eventRecorder.bundleSequenceId == 3)
Expand Down
2 changes: 1 addition & 1 deletion Tests/ClickstreamTests/IntegrationTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class IntegrationTest: XCTestCase {

let testEvent = try getTestEvent()
let eventAttribute = testEvent["attributes"] as! [String: Any]
XCTAssertEqual("AppStore", eventAttribute[ClickstreamAnalytics.Attr.APP_INSTALL_CHANNEL] as! String)
XCTAssertEqual("App Store", eventAttribute[ClickstreamAnalytics.Attr.APP_INSTALL_CHANNEL] as! String)
XCTAssertEqual(5.1, eventAttribute["level"] as! Double)
XCTAssertEqual(5, eventAttribute["class"] as! Int)
XCTAssertEqual(true, eventAttribute["isOpenNotification"] as! Bool)
Expand Down

0 comments on commit 78473c2

Please sign in to comment.