-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix: The test coverage does NOT show the correct statistics #413
Comments
@htoo-eain-lwin as you had some work for this topic on your IC, you could colobrate with @sanG-github on this topic 👌 |
@htoo-eain-lwin |
Hello @sanG-github , |
Thank @htoo-eain-lwin. 😜 I've updated the sample fix, please take a look at it again. Also, thanks for noticing, I will take care of resolving the issue myself. 🙏 |
Issue
The code coverage always shows 0.00%, which means it does not reflect the real code coverage of the project. It was caused by the SimpleCov not starting before the Rails was loaded.
Expected
Show accurate statistics.
![image](https://private-user-images.githubusercontent.com/63148598/246314691-fc8b15f1-a0d3-434d-843f-3e3f4fde8ce5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5OTYwODAsIm5iZiI6MTczOTk5NTc4MCwicGF0aCI6Ii82MzE0ODU5OC8yNDYzMTQ2OTEtZmM4YjE1ZjEtYTBkMy00MzRkLTg0M2YtM2UzZjRmZGU4Y2U1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDIwMDk0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0ODRlYmI1YjQ1OGFlZTAyOGEwMDljMDY3OWY3YThkMTJmZjU2OThlYTVlOGM0YjJhZGJiYzA3ZmRmOTE2MzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QvMHZUqLIanhwXUa4vzZXQY3S3oz_uIaH6zKz2ZIMPU)
Steps to reproduce
The text was updated successfully, but these errors were encountered: