#Test Coverage Results Question
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
I read the magic number is anything above 80% is considered good but I feel like that’s a per basis suggestion
Because I feel like for 100% test coverage, you begin testing of java is actually doing it’s job
Depends on the threshold your given, my projects for graduate had to have 90 coverage. Going for 100% is only possible on tiny tiny projects or your going to have to do massive reflection to get into errors or just code u had to place for logging purposes. Also coverage is not saying anything, just that the program passed the code.
( Example is -> Program running as intended, then an issue arises with database where it sends back garbled instructions )
My code, which had 100% coverage, had a bug 🤣
Which is why 100% coverage doesn't necessarily mean anything
Aiming for a high number is good, but making sure you're actually testing the right things is better (which sometimes means writing tests that contribute nearly nothing to coverage, but cover another use case instead)
Closed the thread due to inactivity.
If your question was not resolved yet, feel free to just post a message to reopen it, or create a new thread. But try to improve the quality of your question to make it easier to help you 👍
Ah sorry just read this, yeah 100% seems out of the realm of possibility. Is the better statistic to look for when analyzing test coverage is line percent?
I stick to line / branch coverage (idk if the latter is always computed)