BDD for UI
BDD for UI
All,
something I was thinking about lately is if it would be beneficial to
do BDD for jQuery UI.
We're using a BDD framework for Ruby (RSpec) at work and it proofed to
be very helpful as your tests become kind of documentation already -
which I think isn't necessarily the case for unit tests.
On a technical level, BDD and TDD aren’t much different. BDD specifies
behaviours while TDD specifies outcomes. BDD uses different, clearer
wording and is focussing on, well, behavior. Thus to me such a spec
can reveal much more information about how a thing should work to a
developer who isn't familiar with it than a TDD style test.
It could be helpful to get a developer, who is unfamiliar with the
code/API, up to speed much faster probably.
I haven't thoroughly evaluated BDD frameworks for JS yet but there are
a few and I think Yehuda even wrote something himself if I recall
correctly - just wanted to throw that out for discussion as I'm -
quite clearly - a BDD adopter :)
--Klaus