Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUM-1520 Logger integration tests #1735

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

xgouchet
Copy link
Member

What does this PR do?

Creates the first real Integration Test class for the Logger and Logger.Builder classes.

So far overal public API (all modules together) is up to 4%

@xgouchet xgouchet requested review from a team as code owners November 20, 2023 13:10
@xgouchet xgouchet force-pushed the xgouchet/RUM-1517/stub_sdk_core branch from e34a781 to 714bbec Compare November 20, 2023 13:54

// Then
val eventsWritten: List<StubEvent> = stubSdkCore.eventsWritten(Feature.LOGS_FEATURE_NAME)
assertThat(eventsWritten).hasSize(0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: usage of isEmpty here will give more descriptive message in case of failure

val eventsWritten: List<StubEvent> = stubSdkCore.eventsWritten(Feature.LOGS_FEATURE_NAME)
assertThat(eventsWritten).hasSize(1)
val event0 = JsonParser.parseString(eventsWritten[0].eventData) as JsonObject
println(event0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems some debugging leftover (also there are more occurrences down the file)

Base automatically changed from xgouchet/RUM-1517/stub_sdk_core to develop November 21, 2023 09:17
@xgouchet xgouchet force-pushed the xgouchet/RUM-1520/single-fit-logs branch from ccf533b to c46c81e Compare November 21, 2023 09:22
@codecov-commenter
Copy link

Codecov Report

Merging #1735 (c46c81e) into develop (764129c) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1735   +/-   ##
========================================
  Coverage    83.35%   83.35%           
========================================
  Files          465      465           
  Lines        16182    16179    -3     
  Branches      2412     2411    -1     
========================================
- Hits         13487    13485    -2     
- Misses        2031     2037    +6     
+ Partials       664      657    -7     

see 24 files with indirect coverage changes

@xgouchet xgouchet merged commit 7845f86 into develop Nov 22, 2023
23 checks passed
@xgouchet xgouchet deleted the xgouchet/RUM-1520/single-fit-logs branch November 22, 2023 07:44
@xgouchet xgouchet added this to the 2.4.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants