align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditemptyheartfacebookfullheartglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Testing - Unit testing JS code with Mocha, Chai ... or lets create lassi ;)

How many of us write Javascript tests? Hardly any of us. How many of us know the benefits of Unit Testing our Javascript code ? Almost all of us.
So what stops us from making our code surrounded by tests. Mostly, it's the rapidly changing nature of Javascript these days combined with the constant nature of pressing work in lieu of which we tend to overlook Unit testing. In this session, we will focus on 3 things:

1# Writing Testable Javascript and Why is testing useful ?
2# Understand various facets of testing libraries by using Javascript-Koans as a learning mechanism. (Expect everyone to have https://github.com/mrdavidlaing/...­ cloned on their machines before the session so that we can all code together).
3# How you can quickly start writing JS unit tests ?

Pour this thread for more ideas if you want some more :)

Join or login to comment.

  • Ganesh G.

    Had wonderful discussion ... Lots of new things I learned today ... Thanks all

    July 20, 2014

  • Ganesh G.

    If anyone has issues reaching you can call me @[masked]

    July 19, 2014

  • Ganesh G.

    Hi all ... Excited to see you all at our meet up ☺

    July 19, 2014

  • Ganesh G.

    Directions for venue : Reach Saket Metro station. From there its walking distance . Here are the directions http://goo.gl/15A9DF ... Thanks Airwoot and Saurabh for hosting our event once again :)

    July 17, 2014

  • Ganesh G.

    Hi All,
    Because of the venue issues we had to reschedule the meetup to evening. Please let us know incase of any issues.

    July 17, 2014

  • Vipul G.

    You guys looking for a venue? 91springboard could provide chai and coffee :)

    July 14, 2014

    • Vipul G.

      Definitely. Projector there. Multiple rooms with varied capacity available. Let's discuss on[masked]

      July 14, 2014

    • Ganesh G.

      Hi Vipul thanks for sharing the info about 91springboard. There are some events going on there on this saturday also its bit far for most of the people.

      July 17, 2014

  • Ganesh G.

    For those who already started working on JS Unit testing ... note that its just not a teaching session, also a place to share good practices, new thoughts, tricks and tips. Knowing a technology is 50% but using it effectively is other 50%. So lets make sure we get together spend good 3 hours exchanging knowledge.

    July 12, 2014

  • Somi

    I just picked up chai and mocha last week for nodejs. BDD is kinda fun

    1 · July 6, 2014

    • Ganesh G.

      Nice to hear ... Will be good if you can share your experience and provide pointers for people who are new to it

      July 11, 2014

  • Ganesh G.

    Hi All,

    Due to venue issue we had to move this meetup to next weekend. We are very sorry about last minute change. Most probably we will again meet in a cafe this time to have a relaxed learning environment with some REAL Chai and Coffee :)

    July 11, 2014

  • Ganesh G.

    Hey All,
    Finally after a long break we are meeting again to explore unit testing in Javascript.

    July 3, 2014

  • Saurabh

    Well we can have a meetup today or next sunday!! what say?

    June 22, 2014

  • Saptarshi

    Lets have a session on e2e testing as well . I can demo protractor .

    1 · May 28, 2014

    • Sachin J.

      Yeah that will be good.

      May 28, 2014

    • Ganesh G.

      Good idea saptarshi ... Let's have it for next meet up. Let's start with unit testing first.

      May 28, 2014

  • Sachin J.

    It would be helpful if difference between [Jasmine vs Chai vs Mocha] can be covered because it will be helpful for the beginners. And then any one of them can be explained with examples.

    1 · May 22, 2014

    • Ganesh G.

      Definitely ... I personally love to have discussion about such topics like comparison, when to use, why to use then go for how to use if time permits. How we can learn from net also.

      1 · May 22, 2014

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy