Get Advice Icon

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

Karma

2.6K
603
+ 1
181
Watir

25
38
+ 1
0
Add tool

Karma vs Watir: What are the differences?

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; Watir: Selenium abstraction in ruby. Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible. Watir drives browsers the same way people do. It clicks links, fills in forms, presses buttons. Watir also checks results, such as….

Karma and Watir can be primarily classified as "Browser Testing" tools.

Some of the features offered by Karma are:

  • Test on Real Devices
  • Remote Control
  • Testing Framework Agnostic

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

  • The test scripts are written in Ruby language
  • It supports multiple domains and has a test recorder
  • It can find elements by its name, index, ID or value.

Karma is an open source tool with 10.8K GitHub stars and 1.61K GitHub forks. Here's a link to Karma's open source repository on GitHub.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Karma
Pros of Watir
  • 61
    Test Runner
  • 35
    Open source
  • 27
    Continuous Integration
  • 22
    Great for running tests
  • 18
    Test on Real Devices
  • 11
    Backed by google
  • 5
    Easy Debugging
  • 2
    Remote Control
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    Cons of Karma
    Cons of Watir
    • 1
      Slow, because tests are run in a real browser
    • 1
      Requires the use of hacks to find tests dynamically
      Be the first to leave a con

      Sign up to add or upvote consMake informed product decisions

      4
      60
      4.6K
      2.6K

      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.

      What is Watir?

      Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible. Watir drives browsers the same way people do. It clicks links, fills in forms, presses buttons. Watir also checks results, such as…

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

      What companies use Karma?
      What companies use Watir?
      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 Karma?
      What tools integrate with Watir?

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

      What are some alternatives to Karma and Watir?
      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 provides you with multiple layers on top of Jasmine.
      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 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.
      Git
      Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
      See all alternatives