Skip to content

RUMM-2042: Fix E2E test#922

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rumm-2042/fix-e2e-test
May 3, 2022
Merged

RUMM-2042: Fix E2E test#922
0xnm merged 1 commit into
developfrom
nogorodnikov/rumm-2042/fix-e2e-test

Conversation

@0xnm

@0xnm 0xnm commented May 3, 2022

Copy link
Copy Markdown
Member

What does this PR do?

Follow-up for #920. Apparently numbers used in branches of sendRandomLog were not the same as actual values of Log priorities.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm requested a review from a team as a code owner May 3, 2022 09:56
@codecov-commenter

codecov-commenter commented May 3, 2022

Copy link
Copy Markdown

Codecov Report

Merging #922 (179262f) into develop (9677ec1) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #922      +/-   ##
===========================================
- Coverage    82.86%   82.79%   -0.07%     
===========================================
  Files          263      263              
  Lines         8977     8977              
  Branches      1449     1449              
===========================================
- Hits          7438     7432       -6     
- Misses        1144     1146       +2     
- Partials       395      399       +4     
Impacted Files Coverage Δ
...n/kotlin/com/datadog/android/timber/DatadogTree.kt 50.00% <0.00%> (-5.56%) ⬇️
...droid/rum/tracking/FragmentViewTrackingStrategy.kt 82.61% <0.00%> (-4.35%) ⬇️
...g/internal/domain/event/DdSpanToSpanEventMapper.kt 96.08% <0.00%> (-3.92%) ⬇️
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 86.78% <0.00%> (-1.15%) ⬇️
.../src/main/kotlin/com/datadog/android/log/Logger.kt 95.93% <0.00%> (-0.07%) ⬇️
.../kotlin/com/datadog/android/ktx/rum/ClosableExt.kt 100.00% <0.00%> (ø)
...om/datadog/android/rum/webview/RumWebViewClient.kt 100.00% <0.00%> (ø)
.../android/webview/internal/rum/WebViewRumFeature.kt 100.00% <0.00%> (ø)
...tadog/android/fresco/DatadogFrescoCacheListener.kt 100.00% <0.00%> (ø)
...ndroid/core/internal/persistence/file/EventMeta.kt 80.00% <0.00%> (ø)
... and 2 more

Comment on lines +28 to +33
2 -> v(message, throwable, attributes)
3 -> d(message, throwable, attributes)
4 -> i(message, throwable, attributes)
5 -> w(message, throwable, attributes)
6 -> e(message, throwable, attributes)
7 -> wtf(message, throwable, attributes)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we should reference the Log values

import android.util.Log

Suggested change
2 -> v(message, throwable, attributes)
3 -> d(message, throwable, attributes)
4 -> i(message, throwable, attributes)
5 -> w(message, throwable, attributes)
6 -> e(message, throwable, attributes)
7 -> wtf(message, throwable, attributes)
Log.VERBOSE -> v(message, throwable, attributes)
Log.DEBUG -> d(message, throwable, attributes)
Log.INFO -> i(message, throwable, attributes)
Log.WARN -> w(message, throwable, attributes)
Log.ERROR -> e(message, throwable, attributes)
Log.ASSERT -> wtf(message, throwable, attributes)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Indeed, it improves the readability. Thanks for the suggestion.

@0xnm
0xnm force-pushed the nogorodnikov/rumm-2042/fix-e2e-test branch from 179262f to 33e566a Compare May 3, 2022 12:26
@0xnm
0xnm merged commit 0b30629 into develop May 3, 2022
@0xnm
0xnm deleted the nogorodnikov/rumm-2042/fix-e2e-test branch May 3, 2022 14:39
@xgouchet xgouchet added this to the 1.14.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants