Skip to content

Conversation

mvicknr
Copy link
Collaborator

@mvicknr mvicknr commented Aug 6, 2025

Links

https://new-relic.atlassian.net/browse/NR-320174
https://new-relic.atlassian.net/browse/NR-448319

Details

Adding tests to cover code in newrelic folder that are less than 40%

Co-authored-by: Github Copilot <[email protected]>
@mvicknr mvicknr changed the base branch from master to develop August 6, 2025 16:05
@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.04%. Comparing base (5a8a2a1) to head (6b7610f).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1078      +/-   ##
===========================================
+ Coverage    74.88%   78.04%   +3.16%     
===========================================
  Files          159      159              
  Lines        15801    15811      +10     
===========================================
+ Hits         11832    12340     +508     
+ Misses        3558     3058     -500     
- Partials       411      413       +2     

see 11 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a8a2a1...6b7610f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Newrelic-Boomi
Copy link

Co-authored-by: Github Copilot <[email protected]>
mvicknr and others added 2 commits August 8, 2025 13:38
Co-authored-by: Github Copilot <[email protected]>
Co-authored-by: Github Copilot <[email protected]>
@mvicknr mvicknr marked this pull request as ready for review August 14, 2025 18:10
v3/go.mod Outdated
@@ -3,6 +3,7 @@ module github.com/newrelic/go-agent/v3
go 1.22

require (
github.com/stretchr/testify v1.10.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should avoid requiring testing dependencies at the top level mod file. It looks like this is only used in the serverless_from_internal_test and could easily be replaced

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed this and updated the test that was using it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please take a look at TestProcess function

@mvicknr
Copy link
Collaborator Author

mvicknr commented Aug 15, 2025

Failures due to a new version of Go being released and 1.23 is too old. Upgrading will need to be done in a separate PR. https://new-relic.atlassian.net/browse/NR-451839

mvicknr and others added 2 commits August 26, 2025 12:28
* test: Add tests and fix issues found with tests

Co-authored-by: Github Copilot <[email protected]>

* Test: Add missed case

Co-authored-by: Github Copilot <[email protected]>

* Fix: Remove unneeded if and fix test

Co-authored-by: Github Copilot <[email protected]>

---------

Co-authored-by: Github Copilot <[email protected]>
* test: Add tests and fix issues found with tests

Co-authored-by: Github Copilot <[email protected]>

* Chore: Cleanup and simplify

Co-authored-by: Github Copilot <[email protected]>

* chore: Naming fix

* test: Check reset with new duration

Co-authored-by: Github Copilot <[email protected]>

* test: Fix test to precisely count ticks

Co-authored-by: Github Copilot <[email protected]>

---------

Co-authored-by: Github Copilot <[email protected]>
@mvicknr mvicknr changed the base branch from develop to master August 26, 2025 16:30
@mvicknr mvicknr changed the base branch from master to develop August 26, 2025 16:30
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already reviewed and merged into develop

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already reviewed and merged into develop

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already reviewed and merged into develop

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already reviewed and merged into develop

@mvicknr
Copy link
Collaborator Author

mvicknr commented Aug 26, 2025

Replaced by #1082

@mvicknr mvicknr closed this Aug 26, 2025
@mvicknr mvicknr deleted the mvick/add-to-under-40-tests branch August 26, 2025 18:32
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.

5 participants