Giter Club home page Giter Club logo

mocha_suite's Introduction

This is a simple batteries-included testing setup for unit tests in javascript- no node or outside dependencies required!.

Any libraries you need can be install with bower with the following command (Make sure you have bower installed): $bower install [library]

What batteries does this include?

This repo comes with the below packages pre-installed:

  • chai: TDD/BDD testing
  • mocha: TDD/BDD testing
  • underscore: utility functions

How I uses this?

To use this framework for testing:

  1. put all source files in the test/src directory
  2. put all tests in the test/spec directory
  3. update test/index.html with:
    • any libraries you installed with bower
    • any source files you added
    • any spec files you added.
  4. $open index.html and enjoy Red-Green-Refactoring!

I've included a simple hashtable implementation with tests as an example of how this works.

Why is this called HRR19 Espresson

Because it includes the two coffee named JS testing libraries. And to evoke the intensity of Hack Reactor and desperately trying to get your tests to pass late at night and early in the morning.

mocha_suite's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.