-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conversation
e34a781
to
714bbec
Compare
|
||
// Then | ||
val eventsWritten: List<StubEvent> = stubSdkCore.eventsWritten(Feature.LOGS_FEATURE_NAME) | ||
assertThat(eventsWritten).hasSize(0) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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)
ccf533b
to
c46c81e
Compare
Codecov Report
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 |
What does this PR do?
Creates the first real Integration Test class for the
Logger
andLogger.Builder
classes.So far overal public API (all modules together) is up to 4%