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

[#413] The test coverage does NOT show the correct statistics #452

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

sanG-github
Copy link
Contributor

@sanG-github sanG-github commented Aug 1, 2023

close #413

What happened 👀

Resolved the issue related to the code coverage always showing 0.00%, which means it does not reflect the real code coverage of the project.

Insight 📝

It was caused by the SimpleCov not starting before the Rails was loaded.

Proof Of Work 📹

Tested and worked well on the public repo

Screenshot 2023-08-01 at 17 57 12

@malparty malparty added this pull request to the merge queue Aug 7, 2023
Merged via the queue into develop with commit eae0cb1 Aug 7, 2023
5 checks passed
@malparty malparty deleted the feature/gh413-show-code-coverage branch August 7, 2023 06:15
@@ -74,7 +74,7 @@ jobs:
run: docker-compose pull test || true

- name: Run codebase test
run: docker-compose run test bundle exec rspec spec/codebase/codebase_spec.rb --format progress
run: docker-compose run test -e DISABLE_SPRING=1 bundle exec rspec spec/codebase/codebase_spec.rb --format progress
Copy link
Member

Choose a reason for hiding this comment

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

Hi @sanG-github we are facing an error due to this changes in our new project, could you double check that, we removed the -e DISABLE_SPRING=1 now in our new project, thank you

image

@malparty malparty mentioned this pull request Sep 14, 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.

Fix: The test coverage does NOT show the correct statistics
4 participants