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

[NO TICKET] test code coverage with symlinked dependency required via entrypoint #188

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

anmarchenko
Copy link
Member

What does this PR do?
This PR adds a test to assert that code coverage tool gets correct file paths when dependencies are located in symlinked folder and required via single entrypoint (emulating usage of local dependencies that are just symlinks to modules in minirepo).

Motivation
Make sure that code coverage won't break in the future as this is known case for the monorepo setup.

How to test the change?
This PR adds only unit tests.

@anmarchenko anmarchenko requested review from a team as code owners June 3, 2024 12:42
@anmarchenko anmarchenko changed the title test code coverage with symlinked dependency required via entrypoint [NO TICKET] test code coverage with symlinked dependency required via entrypoint Jun 3, 2024
@anmarchenko anmarchenko marked this pull request as draft June 3, 2024 12:43
@anmarchenko anmarchenko marked this pull request as ready for review June 3, 2024 13:54
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 85.96491% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 98.86%. Comparing base (7869360) to head (2c33006).

Files Patch % Lines
...h_symlinks/operations/helpers/calculator_logger.rb 33.33% 4 Missing ⚠️
spec/ddcov/calculator_with_symlinks/calculator.rb 86.66% 2 Missing ⚠️
...dcov/calculator_with_symlinks/operations/divide.rb 80.00% 1 Missing ⚠️
...ov/calculator_with_symlinks/operations/multiply.rb 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #188      +/-   ##
==========================================
- Coverage   98.93%   98.86%   -0.08%     
==========================================
  Files         221      228       +7     
  Lines       10039    10096      +57     
  Branches      466      466              
==========================================
+ Hits         9932     9981      +49     
- Misses        107      115       +8     

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

@@ -103,7 +103,7 @@ namespace :test do
"bundle exec appraisal #{ruby_runtime}-#{appraisal_group} rake #{spec_task}"
Copy link
Member Author

Choose a reason for hiding this comment

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

changes in this file are unrelated, just enjoying our own Datadog's static code analysis tool

@anmarchenko anmarchenko merged commit 4278885 into main Jun 4, 2024
28 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/test_code_coverage_with_symlinks branch June 4, 2024 08:33
@github-actions github-actions bot added this to the 1.0.0 milestone Jun 4, 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