Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16617
| Message-ID | <1887783.6V6b7vWGym@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-10-14 00:11 +0200 |
| Subject | Re: Unit test framework recommendations? |
| Newsgroups | comp.lang.javascript |
| References | <T7mdnSwpceeWQe7NnZ2dnUVZ_qKdnZ2d@earthlink.com> <1935017.YUQ9Xjkia0@PointedEars.de> <5c5bef27-f0c9-4379-9c52-43ee4002e534@n16g2000yqi.googlegroups.com> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Scott Sauyet wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Patricia Shanahan wrote:
>>> Does the group have a recommendation for a unit test framework for
>>> JavaScript? [ ... ]
>> [ ... ]
>> I have found jasmine too intuitive
>
> That's a very unusual aspersion to cast.
Your internal error-correction is borken; it should have prefixed "un" to
the adjective automatically.
>> (very un-JUnit-like, which its
>> creators
>> present as a virtue; but I had come to appreciate the clear structure of
>> JUnit tests as well, whereas Jasmine appears to me as sort of a childish,
>> jQuery-like way of writing unit test by comparison).
>
> I'm not entirely sold on Behavior-Driven Development, but that's the
> style of BDD, and not something specific to Jasmine. […]
>
> describe("The 'wordTester' functor', function() {
> var fooTest = wordTester("foo");
>
> it("matches whole words", function() {
> expect(fooTest("contains foo and bar")).toBe(true)
> });
> it("doesn't match nested words", function() {
> expect(fooTest("foolish tomfoolery seafood")).not.toBe(true)
> });
> });
If BDD (whoever coined that term again?) means that code is written like the
above, so that it can be read from left to right like natural language,
while completely ignoring sound and proven concepts of (object-oriented)
programming (such as that namespaces should be used, method identifiers
should be verbs and _not_ nouns, data properties should be nouns or
adjectives, aso.), then I skip on learning (more about) BDD.
PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unit test framework recommendations? Patricia Shanahan <pats@acm.org> - 2012-10-09 09:10 +0100
Re: Unit test framework recommendations? Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-09 10:40 -0700
Re: Unit test framework recommendations? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-09 21:19 +0200
Re: Unit test framework recommendations? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-09 21:50 +0200
Re: Unit test framework recommendations? Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-10 07:24 -0700
Re: Unit test framework recommendations? Patricia Shanahan <pats@acm.org> - 2012-10-10 22:14 +0100
Re: Unit test framework recommendations? Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-11 06:19 -0700
Re: Unit test framework recommendations? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-14 00:11 +0200
Re: Unit test framework recommendations? Patricia Shanahan <pats@acm.org> - 2012-10-13 23:49 +0100
Re: Unit test framework recommendations? Scott Sauyet <scott.sauyet@gmail.com> - 2012-10-14 13:17 -0700
csiph-web