question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get test coverage to 60%

See original GitHub issue

Feature

Why is this feature being added?

Trying to get test coverage up to 90% incrementally. Currently at Test Coverage. Let’s move to 60%+ and I’ll keep making tickets in 10% increments. You can check your progress locally via

yarn jest --coverage

and looking at the top row.

What should your feature do?

Add unit tests that move coverage to 60% or higher according to Code Climate report in PR

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
takethefakecommented, Oct 2, 2018

I will dig deeper in SocialLogin in the 70% Coverage Task 😄

0reactions
kylemhcommented, Oct 2, 2018

Please note: between #184 #186 and #188 a lot of coverage has been added to various components. If you’d like to add tests, consider looking elsewhere like cookie-utils, the YoutubeVideo component, the ScrollButton component, and maybe even our createComponent script (you can remove the coverage ignore line on that one)

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a reasonable code coverage % for unit tests (and why)?
If you TDD your code you should get a 90%+ coverage as a bonus. ... So the overall coverage may be, say, 60%,...
Read more >
Code Coverage Best Practices - Google Testing Blog
Although there is no “ideal code coverage number,” at Google we offer the general guidelines of 60% as “acceptable”, 75% as “commendable” and...
Read more >
Test Coverage Definition - Unit Testing - Microsoft Q&A
Minimum Test Coverage Rate: Keeping it between 60 - 70%. Pros: 1) The good thing here is we are sure our minimum requirements...
Read more >
Test class has only 60% code coverage - Salesforce Developers
Test class has only 60% code coverage. Hi,. I have written the following trigger. trigger OpportunityStageToCaseStatus on Opportunity (after ...
Read more >
Code Coverage Tutorial: Branch, Statement, Function Coverage
You would get to know how it differs from Test Coverage. ... 60 %. Let's compare this with what Code Coverage is. Code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found