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

test: use ACTS logging for Navigator tests #3312

Merged
merged 11 commits into from
Jun 26, 2024

Conversation

AJPfleger
Copy link
Contributor

@AJPfleger AJPfleger commented Jun 19, 2024

@AJPfleger AJPfleger added the 🛑 blocked This item is blocked by another item label Jun 19, 2024
@AJPfleger AJPfleger added this to the next milestone Jun 19, 2024
@github-actions github-actions bot added the Component - Core Affects the Core module label Jun 19, 2024
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.31%. Comparing base (cf9d872) to head (75df02b).
Report is 11 commits behind head on main.

Current head 75df02b differs from pull request most recent head a9ce03c

Please upload reports for the commit a9ce03c to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3312      +/-   ##
==========================================
+ Coverage   47.24%   47.31%   +0.07%     
==========================================
  Files         508      512       +4     
  Lines       30041    30441     +400     
  Branches    14586    14795     +209     
==========================================
+ Hits        14192    14404     +212     
- Misses       5375     5404      +29     
- Partials    10474    10633     +159     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andiwand
Copy link
Contributor

I think it is not strictly necessary to use logger in our tests over cout. I see the logger interface more as an opportunity for the client to overwrite the logging behavior. It does not hurt to adopt this but it would be a big amount of work to replace all the couts in our tests consistently and I don't see a big benefit from this.

@AJPfleger AJPfleger removed the 🛑 blocked This item is blocked by another item label Jun 22, 2024
@AJPfleger AJPfleger marked this pull request as ready for review June 22, 2024 14:03
@AJPfleger
Copy link
Contributor Author

It's probably not necessary, since we don't evoke our test suite with different logging levels and therefore need to recompile anyhow when we want to have more or less output.

However, I changed it, after going through the test and I understood, that the variables debug and debugMode are added scattered over the test with the only purpose of toggling de couts.
I expect to benefit from this change, when I want to revisit these tests and don't need to figure out, that those 2 variables are just enabling a verbose version of an existing function.

@AJPfleger AJPfleger changed the title test: use ACTS logging for Navigator test test: use ACTS logging for Navigator tests Jun 22, 2024
@AJPfleger AJPfleger requested a review from andiwand June 25, 2024 08:33
Tests/IntegrationTests/NavigatorConsistency.cpp Outdated Show resolved Hide resolved
Tests/IntegrationTests/NavigatorConsistency.cpp Outdated Show resolved Hide resolved
Tests/IntegrationTests/NavigatorConsistency.cpp Outdated Show resolved Hide resolved
Tests/UnitTests/Core/Propagator/NavigatorTests.cpp Outdated Show resolved Hide resolved
@AJPfleger AJPfleger requested a review from andiwand June 26, 2024 07:02
Copy link
Contributor

@andiwand andiwand left a comment

Choose a reason for hiding this comment

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

👍

@kodiakhq kodiakhq bot merged commit 55f03cc into acts-project:main Jun 26, 2024
50 checks passed
Copy link

sonarcloud bot commented Jun 26, 2024

@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Jun 26, 2024
@AJPfleger AJPfleger deleted the navigator-logging branch June 27, 2024 07:34
@paulgessinger paulgessinger modified the milestones: next, v36.0.0 Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module Fails Athena tests This PR causes a failure in the Athena tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants