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

Courgette

0
4
+ 1
0
Mocha

3.5K
2.5K
+ 1
425
Add tool

Mocha vs Courgette: What are the differences?

Mocha: Simple, flexible, fun javascript test framework for node.js & the browser. 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; Courgette: A simple UI testing for all the team. Test your Web and Native Mobile Apps. It is a Selenium-based UI Testing Framework written in JS that’s built on top of Cucumber with Protractor for desktop / hybrid apps and Cucumber with WDIO and appium for native mobile apps.

Mocha and Courgette can be categorized as "Javascript Testing Framework" tools.

Some of the features offered by Mocha are:

  • browser support
  • simple async support, including promises
  • test coverage reporting

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

  • Snippets or live templates for intellisense in your favourite IDE to write those steps accurately and quickly
  • Courgette API for creating your own step definitions
  • Screenshots on error for debugging

Mocha is an open source tool with 19.2K GitHub stars and 2.64K GitHub forks. Here's a link to Mocha's open source repository on GitHub.

Decisions about Courgette and Mocha

We use Mocha for our FDA verification testing. It's integrated into Meteor, our upstream web application framework. We like how battle tested it is, its' syntax, its' options of reporters, and countless other features. Most everybody can agree on mocha, and that gets us half-way through our FDA verification and validation (V&V) testing strategy.

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Courgette
Pros of Mocha
    Be the first to leave a pro
    • 136
      Open source
    • 100
      Simple
    • 81
      Promise support
    • 48
      Flexible
    • 28
      Easy to add support for Generators
    • 12
      For browser and server testing
    • 7
      Curstom assertion libraries
    • 4
      Works with Karma
    • 3
      No other better tools
    • 1
      Simple integration testing
    • 1
      Default reporter is nice, clean, and itemized
    • 1
      Simple setup
    • 1
      Works with saucelabs
    • 1
      Lots of tutorials and help online
    • 1
      Works with BrowserStack

    Sign up to add or upvote prosMake informed product decisions

    Cons of Courgette
    Cons of Mocha
      Be the first to leave a con
      • 3
        Cannot test a promisified functions without assertion
      • 1
        Not as many reporter options as Jest
      • 1
        No assertion count in results

      Sign up to add or upvote consMake informed product decisions

      What is Courgette?

      It is a Selenium-based UI Testing Framework written in JS that’s built on top of Cucumber with Protractor for desktop / hybrid apps and Cucumber with WDIO and appium for native mobile apps.

      What is 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.

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

      What companies use Courgette?
      What companies use Mocha?
        No companies found
        See which teams inside your own company are using Courgette or Mocha.
        Sign up for Private StackShareLearn More

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

        What tools integrate with Courgette?
        What tools integrate with Mocha?

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

        Blog Posts

        +29
        15
        11155
        +33
        20
        1643
        What are some alternatives to Courgette and Mocha?
        Cucumber
        Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
        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.
        Jest
        Jest provides you with multiple layers on top of Jasmine.
        BrowserStack
        Live, Web-Based Browser Testing Instant access to all real mobile and desktop browsers. Say goodbye to your lab of devices and virtual machines.
        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.
        See all alternatives