Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Codecov

2.4K
323
+ 1
102
Jest

9.9K
4K
+ 1
175
Add tool

Codecov vs Jest: What are the differences?

What is Codecov? Hosted coverage reports with awesome features to enhance your CI workflow. Our patrons rave about our elegant coverage reports, integrated pull request comments, interactive commit graphs, our Chrome plugin and security.

What is Jest? Painless JavaScript Unit Testing. Jest provides you with multiple layers on top of Jasmine.

Codecov can be classified as a tool in the "Code Coverage" category, while Jest is grouped under "Javascript Testing Framework".

Some of the features offered by Codecov are:

  • Beautiful Reports
  • Pull Request Comments
  • Interactive Commit Graphs

On the other hand, Jest provides the following key features:

  • Familiar Approach: Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions
  • Mock by Default: Automatically mocks CommonJS modules returned by require(), making most existing code testable
  • Short Feedback Loop: DOM APIs are mocked and tests run in parallel via a small node.js command line utility

"More stable than coveralls" is the top reason why over 14 developers like Codecov, while over 24 developers mention "Open source" as the leading cause for choosing Jest.

Jest is an open source tool with 26.1K GitHub stars and 3.53K GitHub forks. Here's a link to Jest's open source repository on GitHub.

Repro, Glympse, and Ubiqua are some of the popular companies that use Jest, whereas Codecov is used by Repro, ContentSquare, and homezen. Jest has a broader approval, being mentioned in 263 company stacks & 150 developers stacks; compared to Codecov, which is listed in 49 company stacks and 28 developer stacks.

Decisions about Codecov and Jest

My website is brand new and one of the few requirements of testings I had to implement was code coverage. Never though it was so hard to implement using a #docker container. Given my lack of experience, every attempt I tried on making a simple code coverage test using the 4 combinations of #TravisCI, #CircleCi with #Coveralls, #Codecov I failed. The main problem was I was generating the .coverage file within the docker container and couldn't access it with #TravisCi or #CircleCi, every attempt to solve this problem seems to be very hacky and this was not the kind of complexity I want to introduce to my newborn website. This problem was solved using a specific action for #GitHubActions, it was a 3 line solution I had to put in my github workflow file and I was able to access the .coverage file from my docker container and get the coverage report with #Codecov.

See more
Shared insights
on
CypressCypressJestJest

As we all know testing is an important part of any application. To assist with our testing we are going to use both Cypress and Jest. We feel these tools complement each other and will help us get good coverage of our code. We will use Cypress for our end to end testing as we've found it quite user friendly. Jest will be used for our unit tests because we've seen how many larger companies use it with great success.

See more

Postman will be used to do integration testing with the backend API we create. It offers a clean interface to create many requests, and you can even organize these requests into collections. It helps to test the backend API first to make sure it's working before using it in the front-end. Jest can also be used for testing and is already embedded into React. Not only does it offer unit testing support in javascript, it can also do snapshot testing for the front-end to make sure components are rendering correctly. Enzyme is complementary to Jest and offers more functions such as shallow rendering. UnitTest will be used for Python testing as it is simple, has a lot of functionality and already built in with python. Sentry will be used for keeping track of errors as it is also easily integratable with Heroku because they offer it as an add-on. LogDNA will be used for tracking logs which are not errors and is also a Heroku add-on. Its good to have a separate service to record logs, monitor, track and even fix errors in real-time so our application can run more smoothly.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Codecov
Pros of Jest
  • 17
    More stable than coveralls
  • 17
    Easy setup
  • 14
    GitHub integration
  • 11
    They reply their users
  • 10
    Easy setup,great ui
  • 5
    Easily see per-commit coverage in GitHub
  • 5
    Steve is the man
  • 4
    Merges coverage from multiple CI jobs
  • 4
    Golang support
  • 3
    Free for public repositories
  • 3
    Code coverage
  • 3
    JSON in web hook
  • 3
    Newest Android SDK preinstalled
  • 2
    Cool diagrams
  • 1
    Bitbucket Integration
  • 36
    Open source
  • 32
    Mock by default makes testing much simpler
  • 23
    Testing React Native Apps
  • 20
    Parallel test running
  • 16
    Fast
  • 13
    Bundled with JSDOM to enable DOM testing
  • 8
    Mock by default screws up your classes, breaking tests
  • 7
    Out of the box code coverage
  • 7
    Promise support
  • 6
    One stop shop for unit testing
  • 3
    Great documentation
  • 2
    Assert Library Included
  • 1
    Built in watch option with interactive filtering menu
  • 1
    Preset support
  • 0
    Can be used for BDD
  • 0
    Karma

Sign up to add or upvote prosMake informed product decisions

Cons of Codecov
Cons of Jest
  • 1
    GitHub org / team integration is a little too tight
  • 0
    Delayed results by hours since recent outage
  • 0
    Support does not respond to email
  • 4
    Documentation
  • 4
    Ambiguous configuration
  • 3
    Difficult
  • 2
    Many bugs still not fixed months/years after reporting
  • 2
    Multiple error messages for same error
  • 2
    Difficult to run single test/describe/file
  • 2
    Ambiguous
  • 2
    Bugged
  • 1
    BeforeAll timing out makes all passing tests fail
  • 1
    Slow
  • 1
    Reporter is too general
  • 1
    Unstable
  • 1
    Bad docs
  • 1
    Still does't support .mjs files natively
  • 1
    Can't fail beforeAll to abort tests
  • 0
    Interaction with watch mode on terminal

Sign up to add or upvote consMake informed product decisions

2
622
107
8.6K
2.7K
2

What is Codecov?

Our patrons rave about our elegant coverage reports, integrated pull request comments, interactive commit graphs, our Chrome plugin and security.

What is Jest?

Jest provides you with multiple layers on top of Jasmine.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Codecov?
What companies use Jest?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Codecov?
What tools integrate with Jest?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Codecov and Jest?
Code Climate
After each Git push, Code Climate analyzes your code for complexity, duplication, and common smells to determine changes in quality and surface technical debt hotspots.
Coveralls
Coveralls works with your CI server and sifts through your coverage data to find issues you didn't even know you had before they become a problem. Free for open source, pro accounts for private repos, instant sign up with GitHub OAuth.
SonarQube
SonarQube provides an overview of the overall health of your source code and even more importantly, it highlights issues found on new code. With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.
Codacy
Codacy automates code reviews and monitors code quality on every commit and pull request on more than 40 programming languages reporting back the impact of every commit or PR, issues concerning code style, best practices and security.
JaCoCo
It is a free code coverage library for Java, which has been created based on the lessons learned from using and integration existing libraries for many years.
See all alternatives