Behaviour Driven Development with Jasmine – BDD – 1. Describe



Behaviour Driven Development with Jasmine – BDD – 1. Describe

0 0


Jasmine-Talk

A presentation about behaviour driven development and the Jasmine.JS tool

On Github katiefenn / Jasmine-Talk

Behaviour Driven Development with Jasmine

Katie Fenn

@katie_fenn

PHP / Frontend Engineer

What is Behaviour Driven Development?

How can Jasmine help?

TDD

BDD

An evolution of test driven development

- Dan North

But what does that mean?

A focus on design behaviours

A much bigger problem

Ubiquitous language

Language shared by stakeholders and team-members alike

Specifications

Writing specifications that can prove the compliance of software

A tour of nine Jasmine features

Testing a simple JQuery timer plugin

1. Describe

2. It

3. Expect

4. Before Each

5. The Spec Runner

Hooray!

6. Mocking

And the Jasmine clock mock

7. Asynchronous support

Beware!

You can't use this with the Jasmine clock mock.

8. Spies

9. Exceptions

Wrapping Up

The Timer

1:00

See the test runner

Useful Links

Thank You

Me

@katie_fenn

Slides

http://katiefenn.co.uk/talks/jasmine-talk

We're hiring

http://inviqa.com/careers/

Behaviour Driven Development and Jasmine by Katie Fenn is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License.