Unit Testing In AngularJS - Class

  • June 5, 2013 · 7:00 PM
  • This location is shown only to members

Testing is vital in any project, but particularly so in the JavaScript environment where you do not have static type checking and need to know if you application will run on a variety of different browsers.

AngularJS, along with tools like Karma (aka Testacular), provides some of the best support for writing and running unit tests of all the JavaScript Frameworks.

This course will teach you:

  • How to write effective Jasmine based unit tests for your Angular application
  • The best way to test controllers, filters, services and directives.
  • What to do about testing asynchronous features.
  • An overview of setting up karma and grunt to create a continuous testing process.
  • How to configure Travis to run tests on commits to GitHub

Join or login to comment.

  • Sid W.

    I managed to workout how to ensure test doubles are correctly implementing their role/interface. The previously linked article had the answer all along I just didn't see it!

    This email thread helped callout the need to wrap your system under test in a context object.


    Finally, here is a gist I put together showing the above technique in angular. https://gist.github.com/sidwood/5730701

    June 7, 2013

  • A former member
    A former member

    Would love to see the sessions over a full day or multiple evenings, perhaps with a second instructer

    June 5, 2013

    • Josh M.

      Thanks for the feedback Phil. We are working on fleshing out the courses with smaller more focused classes. Watch this space.

      June 6, 2013

  • Marc F.

    Hi, Sorry to leave it until the last minute, but I won’t be able to make the class this evening.

    I’m disappointed that I’ll be missing out but it’s unavoidable due to work commitments.

    June 5, 2013

  • Sid W.

    If possible can we cover how to ensure that test doubles are implementing their role/interface correctly? I find that interfaces change frequently during initial development which is causing a lot of false positives in my test suite.

    I've tried to create a shared test suite* to include on tests containing mocked role players to see if they're implementing the interface correctly but no joy so far.

    * http://pivotallabs.com/drying-up-jasmine-specs-with-shared-behavior/

    June 3, 2013

    • Sid W.

      btw, just discovered your book on the weekend and it's really great. I'm taking the whole 'one module per file' thing onboard and it's really helping manage complexity.

      June 3, 2013

    • Peter Bacon D.

      Let's have a chat about it tomorrow night.

      June 4, 2013

  • Peter Bacon D.

    The bottle neck is trying to find slots at Google Campus. There will be more.

    April 29, 2013

    • Sid W.

      How about Skills Matter Exchange? They host all sorts of user groups.

      May 9, 2013

  • Anuj G.

    Would have loved to attend this one. But all spots gone!

    May 9, 2013

  • David H.

    Darn really wanted this one too. :-\

    May 9, 2013

  • Arush S.

    BRANDiD is happy to host one at Seedcamp (4th floor Google Campus) and we have some awesome stuff to show too. Angular/Parse/Backbone best practices.

    1 · May 2, 2013

  • Greg S.

    Since this is full more than a month out, can we have another one?

    April 29, 2013

  • Russell W.

    Made into the intro class but missed registering for this one. Would love to see another some more in the future. :)

    April 16, 2013

19 went

Your organizer's refund policy for Unit Testing In AngularJS - Class

Refunds offered if:

  • the Meetup is cancelled
  • the Meetup is rescheduled
  • you can cancel at least 7 day(s) before the Meetup

Payments you make go to the organizer, not to Meetup. You must make refund requests to the organizer.

Imagine having a community behind you

Get started Learn more

We just grab a coffee and speak French. Some people have been coming every week for months... it creates a kind of warmth to the group.

Rafaël, started French Conversation Group

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