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 Add all Logs Feature integration tests #1769

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

xgouchet
Copy link
Member

What does this PR do?

Add integration tests covering all the Logs Feature apis

Motivation

Reliability, reliability, reliability

@xgouchet xgouchet requested review from a team as code owners December 15, 2023 15:23
@xgouchet xgouchet force-pushed the xgouchet/RUM-1520/single-fit-logs branch from 105c9ec to 8da8d33 Compare December 15, 2023 15:31
@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

Merging #1769 (e33ff12) into develop (2270a11) will increase coverage by 0.04%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1769      +/-   ##
===========================================
+ Coverage    83.40%   83.44%   +0.04%     
===========================================
  Files          469      469              
  Lines        16408    16408              
  Branches      2449     2449              
===========================================
+ Hits         13685    13691       +6     
+ Misses        2052     2046       -6     
  Partials       671      671              

see 18 files with indirect coverage changes

@xgouchet xgouchet force-pushed the xgouchet/RUM-1520/single-fit-logs branch from 8da8d33 to e33ff12 Compare December 15, 2023 17:04
@@ -91,6 +91,9 @@ class StubSDKCore(
override val internalLogger: InternalLogger = StubInternalLogger()

override fun registerFeature(feature: Feature) {
// Stop previous registered
featureScopes[feature.name]?.unwrap<Feature>()?.onStop()
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we just stop core instead after each test? and stop the features in the stop method of the code.

Copy link
Member Author

Choose a reason for hiding this comment

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

This part is only required because in one of the tests I override the previously started feature: in the @BeforeEach set up, we register a Logs feature, but in some tests I need to register a feature with a different configuration.

@xgouchet xgouchet merged commit d29c752 into develop Dec 18, 2023
23 checks passed
@xgouchet xgouchet deleted the xgouchet/RUM-1520/single-fit-logs branch December 18, 2023 10:59
@xgouchet xgouchet added this to the 2.4.0 milestone Feb 19, 2024
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.

3 participants