• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

BDD with JS: Frameworks vs roll your own

 
Ranch Hand
Posts: 861
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marco,
I can't tell from the Table of Contents, or the excerpt on Amazon. Do you show how to to BDD with projects that use frameworks like Sencha Touch, or are you more focused on teaching BDD principles in general? I understand that it's a big topic to cover in just 109 pages, so there may not be room to get into specifics.

Thanks,
Burk
 
Author
Posts: 20
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Burk,

The BDD-Framework, I used in the book is Jasmine. It is very popular and easy to setup. I also suggested a few additional ones to try out. However, the actual framework is not as important as the general principles. I address the principles with actual code for Jasmine - as examples. But maybe this is not your question.

Do you mean writing specs for specific frameworks? In this case, like you already assumed, there were no room for addressing them. I'm not even convinced that this would be useful since there are so many of them. Some frameworks have their own specific testing/spec-strategy that is explained in their manuals. Angular.js is such a shining example. They even provide direct support for Jasmine (http://docs.angularjs.org/guide/dev_guide.services.testing_services). I think they can explain framework specifics much better than I could.

Therefore I focused the book on the more general technical- and process-oriented aspects. I believe that the general understanding of how to create, organize and maintain specs is very valuable and can be easily adopted to any framework.

thanks,
Marco

oh - I forgot. Maybe you might be interested in an article, that will soon appear in the free Web&PHP-Magazine. In this article I describe how to verify specs for jQuery-built (or similar DOM-manipulation-based) user interfaces - also with Jasmine.
 
Burk Hufnagel
Ranch Hand
Posts: 861
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marco,
I'm currently working on an app using the Sencha Touch framework and was thinking about how the BDD approach would work. From what I've seen so far, Sencha starts with an HTML page that has an empty body tag and builds the UI and its behaviors using JavaScript. I've used tools like Spock to write specifications, and Selenium II or Geb to drive the UI and verify content or behavior (like enabling/disabling controls, or redirecting to a specific web page), but I don't know how that would work using Sencha.

I hope that makes things clearer.

The article sounds interesting - could you supply a link to the magazine's site?

Thanks,
Burk
 
Burk Hufnagel
Ranch Hand
Posts: 861
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Marco Emrich wrote:The BDD-Framework, I used in the book is Jasmine.


That's interesting - I started reading a book on using Jasmine for doing TDD with JavaScript a few months ago, but had to stop as there were other fires to put out and I'd forgotten about it. Now I need to go dig it up and read that AND your book.

Thanks for the reminder,
Burk
 
Marco Emrich
Author
Posts: 20
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Burk Hufnagel wrote:The article sounds interesting - could you supply a link to the magazine's site?



http://webandphp.com/
 
Burk Hufnagel
Ranch Hand
Posts: 861
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marco,
Just took a peek and looks like there's a ton of useful info there.

Thank you,
Burk
reply
    Bookmark Topic Watch Topic
  • New Topic