I agree -- too many of the current materials are just about how to write
tests, and most of them are for writing tests for existing code -- a
fundamental error, in my view.

There are extraordinary resources available in general.  I'll put together
a set of links in a bit.  (too many alas, are for-profit).  Uncle Bob's
cleancoders web site has a series of Java-based teting videos that are just
plain outstanding.  (The last four or five are all about testing.)

I am now putting together a more current (and better structured) set of
videos doing test-first angularjs development of applications ranging from
simple katas to full-scale applications.


On Sat, Mar 29, 2014 at 7:02 AM, Danny <[email protected]> wrote:

> Mr. Greenberg,
>
> Excellent videos for applying TDD/BDD to AngularJS. I have not heard
> anyone mention Uncle Bob, DRY etc. in any Angular videos. Most of the
> online training courses start with designing the UI layer. Can you
> recommend any resources including mentoring or online training using the
> TDD approach first ?
>
> Thanks in advance.
>
>
>
> On Monday, September 16, 2013 2:43:10 PM UTC-7, Andrew C. Greenberg wrote:
>>
>> The following plnkr illustrates the problem:
>>
>>   http://plnkr.co/edit/ZpdjrlZMADdeGxKYpR9Z?p=preview
>>
>> The test
>>
>> <pre>
>>   ...
>>
>>   beforeEach(inject(function($rootScope, $compile) {
>>     scope = $rootScope.$new();
>>     element = $compile('<directive></directive>')(scope);
>>     $rootScope.$digest();
>>   }));
>>
>>   ...
>>
>>   it('should have the text be blue', function() {
>>     expect(element.hasClass('blue')).toBeTruthy();
>>   });
>>
>> });
>> <pre>
>>
>> passes fine in the ordinary case, but fails when the "ngAnimate"
>> dependency
>> is added to the main module.  The problem seems to have something to do
>> with
>> the recent changes to ng-class and animation.  What's going on?
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/yEQAl9bm6hM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to