[Lumiera] cspec for testsuite?
Ichthyostega
prg at ichthyostega.de
Mon Sep 22 07:27:23 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Thaeter schrieb:
> i've just seen the following on freshmeat:
> http://github.com/arnaudbrejeon/cspec/wikis/home
>
> not carefully investigated yet, but from a first glimpse I think i
> like it! (actually its very much the ways I would do such)
>
> opinions?
Behaviour Driven Development is a nice idea (I think the general
direction is OK) -- but it seems to fall short with the same problems
which haunt all sorts and flavours of model driven development: sadly
enough, the real world isn't that simple. All this stuff works nicely
in an academic environment, but, have you ever seen an real world
scenario where writing a test was as simple as
SHOULD_BE_TRUE( strcmp("hello", "world") < 0 )
Most of the time, the things you are covering in real tests are
notoriously difficult to describe in a declarative manner.
Typically, you have to setup some mock objects, pull up some
parts of the system, switch other parts into a test mode, then
create a fixture with specific test data, then fire off your
test case and then do quite some non tivial calculations to
find out if things worked out as expected.
This isn't as simple as "SHOULD_BE_TRUE". If you *really* extend
the idea behind behaviour driven development so that it can be
used for non-academic purposes, you end with developing a
high-level declarative programming language for functional
requirements. Which, in itself, is a very valid and desirable
goal, and certainly helps...
Bottom line: useful: yes, but much more limited as one might expect
at first glimpse.
cheers,
Hermann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI1yy6ZbZrB6HelLIRArRKAJ9pt2xVNkoSrIy9U+NhO2rxbzyWEACeIauA
C2QucWvk8oc5EJUl0wxHPW8=
=cAln
-----END PGP SIGNATURE-----
More information about the Lumiera
mailing list