addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Javascript Testing - The Basics

Meetup Schedule

18:00 - 18:15 - Kisses and Hugs

18:15 - 19:15 - Introduction to Javascript Testing

19:15 - 19:30 - break

19:30 - 20:30 - Isolation in Unit Tests - Using Test Doubles

Introduction to Javascript Testing ( Ran Mizrahi )

These days, when web applications are a main part of most developers life and larger code bases are written in Javascript, testing becomes a lot more essential.

In this session we'll introduce you to Javascript testing and discuss its basics.

We'll cover the following aspects:

  • Why test your code???
  • Intro to BDD/TDD
  • Challenges writing JS tests.
  • Testing JS using Mocha and Expect.js.

Unit Isolation - Using Test Doubles ( Oren Rubin )

In this part you'll become friends with Spies, Stubs and Mocks, which helps you isolate your unit from the rest of the world, and focus your tests.

We'll show how to write asynchronous tests, which are a breeze in JS.

Throughout the presentation examples from the most popular frameworks (e.g. Jasmine, QUnit, Sinon, JsTestDriver) will be shown and compared.

Join or login to comment.

  • Shai R.

    February 20, 2013

  • A former member
    A former member

    Great presentations with a lot of information... However, I would have liked to see an actual example from real life. It felt like we're more or less describing these methodologies in theory and not dealing with real use cases most of us encounter in our daily work.
    The second presentation covered a lot of different tools, some of which were just alternatives to each other, and some were even described by the presenter as not usually applicable for most use cases. I think it was more a miss than a hit. Keeping this part more oriented to using one specific testing framework and how to use some useful utilities with it, could have been much more beneficial to most of the participants.
    Personally, I like Mocha's simple and straightforward approach more, and I think that having another, more thorough presentation about it, which will show how to make it work for decently sized projects, could be fantastic.

    February 11, 2013

    • Shai R.

      Very important to know for future testing oriented meetups

      February 11, 2013

    • Oren R.

      Thanks for the feedback :)
      I agree partially with Naor. There was no lecture on "how to test", but the allotted time didn't leave any choice for a single meeting (since the second part was for advanced testers).
      The second presentation was technical and didn't show stuff as the "test result of jasmine", but showed difference in tools.
      ALL the tools are used in production everywhere: qUnit (jquery, ember..), jasmine (super popular), jsTestDriver (those who want CI.. I use it) and sinon (also by many people, including me). Selenium currently has the biggest attraction from QA automation (by far!), and though it wasn't in the scope I wanted to show an example of it (which lasted 30 sec).

      February 11, 2013

  • Gail S.

    would have like the focus to be on writing tests for javascript, less on tools and processes

    February 11, 2013

    • Shai R.

      Thanks Gail for the feedback!

      February 11, 2013

  • Sebastian P.

    I was in the first part only. It was OK but was a ppt presentation and not a technical one. I expected that the presenter shows some practical samples.

    February 10, 2013

    • Sebastian P.

      thanks guys, I like to see code, so may be I could stay for the second part! Next time!

      February 11, 2013

    • Sebastian P.

      Anyway thank you for your repleys and time!

      February 11, 2013

  • Shai R.

    I wanted to thank Ran and Oren for their talks and effort, they did an awesome job and covered a lot of ground. Also wanted to thank everyone that came, great to see the community growing and collaborating.
    Please share your feedback if you got any (what was good and what can be improved).
    Thanks!

    2 · February 11, 2013

  • Marcelo W.

    sorry can't make it...

    February 10, 2013

  • Noam G.

    anyone know where you can park the car over there?

    February 10, 2013

    • Shai R.

      I usually park / pango in the streets near the area, it's a few minutes walk.

      February 10, 2013

    • Noam G.

      thanks

      February 10, 2013

  • Dr. Nadav D.

    Need some help getting there? - here is auto GPS link: http://www.jeepsing.com/location/Campus_TLV

    See you!

    January 28, 2013

  • Oren L.

    I'm part of the +2 of Ilan's Rackover

    January 26, 2013

Our Sponsors

  • JetBrains

    We'll be raffling off free licenses to Webstorm at each meetup.

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