Alternatives to Karma logo

Alternatives to Karma

Jasmine, Jest, Mocha, Protractor, and Selenium are the most popular alternatives and competitors to Karma.
3K
596
+ 1
181

What is Karma and what are its top alternatives?

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.
Karma is a tool in the Browser Testing category of a tech stack.
Karma is an open source tool with 11.8K GitHub stars and 1.8K GitHub forks. Here’s a link to Karma's open source repository on GitHub

Top Alternatives to Karma

  • Jasmine
    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. ...

  • Jest
    Jest

    Jest provides you with multiple layers on top of Jasmine.

  • Mocha
    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. ...

  • Protractor
    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. ...

  • Selenium
    Selenium

    Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well. ...

  • BrowserStack
    BrowserStack

    BrowserStack is a leading software testing platform for developers to comprehensively test their websites and mobile applications across 2,000+ real browsers and devices in a single cloud platform—and at scale. ...

  • LambdaTest
    LambdaTest

    LambdaTest platform provides secure, scalable and insightful test orchestration for website, and mobile app testing. Customers at different points in their DevOps lifecycle can leverage Automation and/or Manual testing on LambdaTest. ...

  • LambdaTest
    LambdaTest

    LambdaTest platform provides secure, scalable and insightful test orchestration for website, and mobile app testing. Customers at different points in their DevOps lifecycle can leverage Automation and/or Manual testing on LambdaTest. ...

Karma alternatives & related posts

Jasmine logo

Jasmine

3.4K
1.4K
186
DOM-less simple JavaScript testing framework
3.4K
1.4K
+ 1
186
PROS OF JASMINE
  • 64
    Can also be used for tdd
  • 49
    Open source
  • 18
    Originally from RSpec
  • 15
    Great community
  • 14
    No dependencies, not even DOM
  • 10
    Easy to setup
  • 8
    Simple
  • 3
    Created by Pivotal-Labs
  • 2
    Works with KarmaJs
  • 1
    Jasmine is faster than selenium in angular application
  • 1
    SpyOn to fake calls
  • 1
    Async and promises are easy calls with "done"
CONS OF JASMINE
  • 2
    Unfriendly error logs

related Jasmine posts

Joshua Dean Küpper
CEO at Scrayos UG (haftungsbeschränkt) · | 6 upvotes · 259.8K views

For our internal team and collaboration panel we use Nuxt.js (with TypeScript that is transpiled into ES6), Webpack and npm. We enjoy the opinionated nature of Nuxt.js over vanilla Vue.js, as we would end up using all of the components Nuxt.js incorporates anyways and we can adhere to the conventions setup by the Nuxt.js project, which allows us to get better support in case we run into any dead ends. Webpack allows us to create reproducable builds and also debug our application with hot reloads, which greately increased the pace at which we are able to perform and test changes. We also incorporated a lot of testing (ESLint, Chai, Jasmine, Nightwatchjs) into our pipelines and can trigger those jobs through GitLab CI. All packages are fetched through npm, so that we can keep our git repositories slim and are notified of new updates aswell as reported security flaws.

See more
Sai Chaitanya Mankala
Tech Lead at KIOT Innovations · | 6 upvotes · 197.3K views

Protractor or Cypress for ionic-angular?

We have a huge ionic-angular app with almost 100 pages and 10+ injectables. There are no tests written yet. Before we start, we need some suggestions about the framework. Would you suggest Cypress or Angular's Protractor with Jasmine / Karma for a heavy ionic app with Angular?

See more
Jest logo

Jest

7.4K
3K
170
Painless JavaScript Unit Testing
7.4K
3K
+ 1
170
PROS OF JEST
  • 35
    Open source
  • 31
    Mock by default makes testing much simpler
  • 23
    Testing React Native Apps
  • 19
    Parallel test running
  • 15
    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
  • 6
    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
    Karma
  • 0
    Can be used for BDD
CONS OF JEST
  • 3
    Ambiguous configuration
  • 3
    Difficult
  • 3
    Documentation
  • 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
    Slow
  • 1
    Reporter is too general
  • 1
    BeforeAll timing out makes all passing tests fail
  • 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

related Jest posts

Robert Zuber

We are in the process of adopting Next.js as our React framework and using Storybook to help build our React components in isolation. This new part of our frontend is written in TypeScript, and we use Emotion for CSS/styling. For delivering data, we use GraphQL and Apollo. Jest, Percy, and Cypress are used for testing.

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
Mocha logo

Mocha

5.2K
2.7K
430
Simple, flexible, fun javascript test framework for node.js & the browser
5.2K
2.7K
+ 1
430
PROS OF MOCHA
  • 137
    Open source
  • 102
    Simple
  • 81
    Promise support
  • 48
    Flexible
  • 29
    Easy to add support for Generators
  • 12
    For browser and server testing
  • 7
    Curstom assertion libraries
  • 5
    Works with Karma
  • 3
    No other better tools
  • 1
    Simple setup
  • 1
    Works with saucelabs
  • 1
    Lots of tutorials and help online
  • 1
    Default reporter is nice, clean, and itemized
  • 1
    Works with BrowserStack
  • 1
    Simple integration testing
CONS OF MOCHA
  • 3
    Cannot test a promisified functions without assertion
  • 2
    No assertion count in results
  • 1
    Not as many reporter options as Jest

related Mocha posts

I use both mocha and Jest because:

  • I don't care whether teams use Jest or Mocha. But jest is way too overhyped. Most devs are writing integration tests and think that it's so much better but frankly I don't write integration tests as the way to get both design feedback and confidence when I code. I adhere to the test pyramid, not ice cream cone or the dumb "trophy"

  • I TDD, so I only ever use the "API" of test frameworks. I don't do a lot of integration tests for TDD and all the bells and whistles Jest provides you from the command-line I just don't need. And I certainly do not care about or touch Jest Snapshots, I despise them

  • My tests are fast enough because I write isolated tests with TDD, so I don't run into performance issues. Example: I write my tests in a way that I can run 300 tests in literally 1 second with mocha. So the Jest ability to pinpoint and only run those tests which are affected by code changes. I want to run all of them every time when I TDD. It's a different mindset when you TDD

  • I also mainly code in IntelliJ or WebStorm because I feel the tools in that IDE far surpass VSCode and I also love running the test UI runner in it vs. lousy command-line

  • I feel both mocha and Jest read just fine in terms of code readability. Jest might have shorter assertion syntax but I don't really care. I just care that I can read the damn test and my tests are written well and my test descriptions, as well as the code itself including constants represent business language, not technical. I care most about BDD, clean code, 4 rules of simple design, and SOLID

  • I don't like using mock frameworks so no I don't use Jest's Mocking framework. I don't have to mock a lot in my tests due to the nature of how I strive to code...I keep my design simple and modular using principals such as clean code and 4 rules of simple design. If I must mock, I create very simple custom mocks with JS

  • On the contrary to the belief that integration tests and mount are the way to go (this belief drives me absolutely crazy, especially Dodd's promoting that), I TDD with shallow & enzyme. My tests are simple. My design is driven by my tests and my tests give me quick and useful feedback. I have a course I'm working on coming out soon on TDD with React to show you how to truly test the FE and why the ice cream cone and trophy suck (you're being scammed people). Watch for that here: https://twitter.com/DaveSchinkel/status/1062267649235791873

Don't forget to upvote this post!

Mocha Jest JavaScript React @jsdom Enzyme #tdd #bdd #testdrivendevelopment

See more
Jack Graves
Head of Product Development at Automation Consultants · | 4 upvotes · 167.1K views

We use JUnit and Jest to perform the bulk of our automated test scenarios, with additional work with Apache JMeter for performance testing - for example, the Atlassian Data Center compliance testing is performed with JMeter. Jest provides testing for the React interfaces, which make up the backend of our App offerings. JUnit is used for Unit Testing our Server-based Apps. Mocha is another tool we use.

See more
Protractor logo

Protractor

1.8K
537
33
End-to-end test framework for Angular and AngularJS applications
1.8K
537
+ 1
33
PROS OF PROTRACTOR
  • 9
    Easy setup
  • 8
    Quick tests implementation
  • 6
    Flexible
  • 5
    Open source
  • 5
    Promise support
CONS OF PROTRACTOR
  • 4
    Limited

related Protractor posts

Raziel Alron
Automation Engineer at Tipalti · | 7 upvotes · 331.7K views

Currently, we are using Protractor in our project. Since Protractor isn't updated anymore, we are looking for a new tool. The strongest suggestions are WebdriverIO or Puppeteer. Please help me figure out what tool would make the transition fastest and easiest. Please note that Protractor uses its own locator system, and we want the switch to be as simple as possible. Thank you!

See more
Sai Chaitanya Mankala
Tech Lead at KIOT Innovations · | 6 upvotes · 197.3K views

Protractor or Cypress for ionic-angular?

We have a huge ionic-angular app with almost 100 pages and 10+ injectables. There are no tests written yet. Before we start, we need some suggestions about the framework. Would you suggest Cypress or Angular's Protractor with Jasmine / Karma for a heavy ionic app with Angular?

See more
Selenium logo

Selenium

14.3K
11.2K
523
Web Browser Automation
14.3K
11.2K
+ 1
523
PROS OF SELENIUM
  • 173
    Automates browsers
  • 154
    Testing
  • 101
    Essential tool for running test automation
  • 24
    Remote Control
  • 24
    Record-Playback
  • 8
    Data crawling
  • 7
    Supports end to end testing
  • 6
    Functional testing
  • 6
    Easy set up
  • 4
    The Most flexible monitoring system
  • 3
    End to End Testing
  • 3
    Easy to integrate with build tools
  • 2
    Comparing the performance selenium is faster than jasm
  • 2
    Record and playback
  • 2
    Compatible with Python
  • 2
    Easy to scale
  • 2
    Integration Tests
  • 0
    Integrated into Selenium-Jupiter framework
CONS OF SELENIUM
  • 8
    Flaky tests
  • 4
    Slow as needs to make browser (even with no gui)
  • 1
    Update browser drivers

related Selenium posts

Kamil Kowalski
Lead Architect at Fresha · | 28 upvotes · 1.9M views

When you think about test automation, it’s crucial to make it everyone’s responsibility (not just QA Engineers'). We started with Selenium and Java, but with our platform revolving around Ruby, Elixir and JavaScript, QA Engineers were left alone to automate tests. Cypress was the answer, as we could switch to JS and simply involve more people from day one. There's a downside too, as it meant testing on Chrome only, but that was "good enough" for us + if really needed we can always cover some specific cases in a different way.

See more
Benjamin Poon
QA Manager - Engineering at HBC Digital · | 8 upvotes · 972.3K views

For our digital QA organization to support a complex hybrid monolith/microservice architecture, our team took on the lofty goal of building out a commonized UI test automation framework. One of the primary requisites included a technical minimalist threshold such that an engineer or analyst with fundamental knowledge of JavaScript could automate their tests with greater ease. Just to list a few: - Nightwatchjs - Selenium - Cucumber - GitHub - Go.CD - Docker - ExpressJS - React - PostgreSQL

With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.

See more
BrowserStack logo

BrowserStack

2.7K
2K
435
BrowserStack is a software testing platform for developers to comprehensively test websites and mobile applications
2.7K
2K
+ 1
435
PROS OF BROWSERSTACK
  • 131
    Multiple browsers
  • 71
    Ease of use
  • 60
    Real browsers
  • 40
    Ability to use it locally
  • 23
    Good price
  • 17
    Great web interface
  • 15
    IE support
  • 13
    Official mobile emulators
  • 12
    Cloud-based access
  • 11
    Instant access
  • 8
    Real mobile devices
  • 5
    Selenium compatible
  • 5
    Multiple Desktop OS
  • 4
    Can be used for Testing and E2E
  • 4
    Screenshots
  • 3
    Pre-installed developer tools
  • 3
    Video of test runs
  • 2
    Favourites
  • 2
    Webdriver compatible
  • 2
    Supports Manual, Functional and Visual Diff Testing
  • 2
    Many browsers
  • 1
    Cypress Compatible
  • 1
    Free for Open Source
CONS OF BROWSERSTACK
  • 2
    Very limited choice of minor versions

related BrowserStack posts

Zarema Khalilova
Frontend Team Lead at Uploadcare · | 6 upvotes · 239K views

I am working on #OpenSource file uploader. The uploader is the widget that other developers embed in their apps. It should work well in different browsers and on different devices. BrowserStack and Sauce Labs help to achieve that. I can test the uploader in many varieties of browsers+OS only used my browser without virtual machines.

See more
LambdaTest logo

LambdaTest

533
184
204
LambdaTest is a continuous quality testing cloud platform that helps developers and testers ship code faster.
533
184
+ 1
204
PROS OF LAMBDATEST
  • 17
    Pocket friendly pricing
  • 13
    Good Performance
  • 12
    Integration with Gitlab
  • 12
    Integration with Bitbucket
  • 12
    Cross browser testing
  • 11
    Integration with Jira
  • 11
    Great support
  • 11
    Integration with GitHub
  • 10
    Integration with Trello
  • 10
    Clean UI and Easy to use
  • 10
    Integration with Slack
  • 10
    Integration with Asana
  • 8
    Pre-installed developer tools
  • 8
    Integration with Hive
  • 8
    IE and Edge support
  • 6
    Local app testing
  • 6
    Multiple Browsers
  • 5
    Integration with Teamwork
  • 5
    Integration with VSTS
  • 4
    Real time testing feature is flawless
  • 3
    Selenium automation
  • 3
    Faster Speed
  • 3
    Up-to-date Browser collection
  • 2
    Robust Selenium Grid
  • 2
    Real devices
  • 2
    24/7 Customer Chat Support
CONS OF LAMBDATEST
    Be the first to leave a con

    related LambdaTest posts

    Sarah Elson
    Product Growth at LambdaTest · | 4 upvotes · 436.9K views

    @producthunt LambdaTest Selenium JavaScript Java Python PHP Cucumber TeamCity CircleCI With this new release of LambdaTest automation, you can run tests across an Online Selenium Grid of 2000+ browsers and OS combinations to perform cross browser testing. This saves you from the pain of maintaining the infrastructure and also saves you the licensing costs for browsers and operating systems. #testing #Seleniumgrid #Selenium #testautomation #automation #webdriver #producthunt hunted

    See more
    Sarah Elson
    Product Growth at LambdaTest · | 2 upvotes · 112.8K views
    Shared insights
    on
    SeleniumSeleniumLambdaTestLambdaTest
    at
    Selenium Grid Setup Tutorial For Cross Browser Testing

    Selenium LambdaTest

    See more
    LambdaTest logo

    LambdaTest

    533
    184
    204
    LambdaTest is a continuous quality testing cloud platform that helps developers and testers ship code faster.
    533
    184
    + 1
    204
    PROS OF LAMBDATEST
    • 17
      Pocket friendly pricing
    • 13
      Good Performance
    • 12
      Integration with Gitlab
    • 12
      Integration with Bitbucket
    • 12
      Cross browser testing
    • 11
      Integration with Jira
    • 11
      Great support
    • 11
      Integration with GitHub
    • 10
      Integration with Trello
    • 10
      Clean UI and Easy to use
    • 10
      Integration with Slack
    • 10
      Integration with Asana
    • 8
      Pre-installed developer tools
    • 8
      Integration with Hive
    • 8
      IE and Edge support
    • 6
      Local app testing
    • 6
      Multiple Browsers
    • 5
      Integration with Teamwork
    • 5
      Integration with VSTS
    • 4
      Real time testing feature is flawless
    • 3
      Selenium automation
    • 3
      Faster Speed
    • 3
      Up-to-date Browser collection
    • 2
      Robust Selenium Grid
    • 2
      Real devices
    • 2
      24/7 Customer Chat Support
    CONS OF LAMBDATEST
      Be the first to leave a con

      related LambdaTest posts

      Sarah Elson
      Product Growth at LambdaTest · | 4 upvotes · 436.9K views

      @producthunt LambdaTest Selenium JavaScript Java Python PHP Cucumber TeamCity CircleCI With this new release of LambdaTest automation, you can run tests across an Online Selenium Grid of 2000+ browsers and OS combinations to perform cross browser testing. This saves you from the pain of maintaining the infrastructure and also saves you the licensing costs for browsers and operating systems. #testing #Seleniumgrid #Selenium #testautomation #automation #webdriver #producthunt hunted

      See more
      Sarah Elson
      Product Growth at LambdaTest · | 2 upvotes · 112.8K views
      Shared insights
      on
      SeleniumSeleniumLambdaTestLambdaTest
      at
      Selenium Grid Setup Tutorial For Cross Browser Testing

      Selenium LambdaTest

      See more