Get Advice Icon

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

Jasmine
Jasmine

799
674
+ 1
174
Karma
Karma

508
343
+ 1
175
Add tool

Jasmine vs Karma: What are the differences?

What is Jasmine? DOM-less simple JavaScript testing framework. Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

What is Karma? Spectacular Test Runner for JavaScript. Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like.

Jasmine can be classified as a tool in the "Javascript Testing Framework" category, while Karma is grouped under "Browser Testing".

"Can also be used for tdd " is the primary reason why developers consider Jasmine over the competitors, whereas "Test Runner" was stated as the key factor in picking Karma.

Jasmine and Karma are both open source tools. Jasmine with 14.4K GitHub stars and 2.12K forks on GitHub appears to be more popular than Karma with 10.7K GitHub stars and 1.61K GitHub forks.

According to the StackShare community, Jasmine has a broader approval, being mentioned in 143 company stacks & 75 developers stacks; compared to Karma, which is listed in 119 company stacks and 57 developer stacks.

What is Jasmine?

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

What is Karma?

Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like.
Get Advice Icon

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

Why do developers choose Jasmine?
Why do developers choose Karma?

Sign up to add, upvote and see more prosMake informed product decisions

Jobs that mention Jasmine and Karma as a desired skillset
What companies use Jasmine?
What companies use Karma?

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

What tools integrate with Jasmine?
What tools integrate with Karma?
What are some alternatives to Jasmine and Karma?
Mocha
Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
Jest
Jest provides you with multiple layers on top of Jasmine.
Cypress
Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
Enzyme
Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.
Protractor
Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.
See all alternatives
Decisions about Jasmine and Karma
Jorge Quiros
Jorge Quiros
SR QA Automation Engineer at Indecomm | 9 upvotes 364.5K views
Protractor
Protractor
Jasmine
Jasmine
JavaScript
JavaScript
Selenium
Selenium
Cypress
Cypress
#Testing
#Cypress
#Qaautomation

This is a trending topic on Automation testing for E2E web applications.

I have used Protractor and Jasmine for automation testing frameworks in JavaScript by using the Selenium web driver manager.

Now, new guy in town Cypress does not use Selenium and runs directly in your app without any json wire protrocol, but it does not support parallel testing or mobile testing.

Have you experienced both? Should I stick with old and known ?

#testing cypress #selenium qaautomation #qa

See more
Interest over time
Reviews of Jasmine and Karma
No reviews found
How developers use Jasmine and Karma
Avatar of RentChek
RentChek uses JasmineJasmine

We use Jasmine for all our front-end web interface tests. Works great for testing all our Angular components.

Avatar of Riderman De Sousa Barbosa
Riderman De Sousa Barbosa uses KarmaKarma

All services, directives and controllers from angular are tested using Karma.

Avatar of Ron Apelbaum
Ron Apelbaum uses JasmineJasmine

I write unit tests with Jasmine, and use nodejs Jasmine as a test runner.

Avatar of Ron Apelbaum
Ron Apelbaum uses KarmaKarma

I use Karma as a test runner for javascript unit tests

Avatar of Giovanni Candido da Silva
Giovanni Candido da Silva uses KarmaKarma

Run unit and integration tests on real browsers

Avatar of Fred Steffen
Fred Steffen uses JasmineJasmine

It has tons of features, great documentation

Avatar of Glib Ischenko
Glib Ischenko uses KarmaKarma

Running Unit tests for Angular UI

Avatar of Giovanni Candido da Silva
Giovanni Candido da Silva uses JasmineJasmine

Test tool for the interface code

Avatar of Typeform
Typeform uses KarmaKarma

Testing frontend of admin part

Avatar of Evan Luc
Evan Luc uses JasmineJasmine

Front and back-end tests.

How much does Jasmine cost?
How much does Karma cost?
Pricing unavailable
Pricing unavailable
News about Jasmine
More news
News about Karma
More news