2. Who is Lars Thorup?
● Software developer/architect
● JavaScript, C#
● Test Driven Development
● Continuous Integration
● Coach: Teaching agile and
automated testing
● Advisor: Assesses software
projects and companies
● Founder of ZeaLake
4. GruntJS
● Command line ● Good support for
● NodeJS ● RequireJS
● CoffeeScript
● Static analysis
● JSHint ● Lots of other plugins
● Run tests in PhantomJS ● Popular and actively
● QUnit developed
● Jasmine
● and others
● Code Coverage
● Istanbul
● Blanket
5. src/test/code.test.js
describe('durationInEnglish', function () {
it('should return "now" when duration is 0', function () {
expect(durationInEnglish(0)).toBe('now');
});
it('should return "x seconds ago" when ...', function () {
var now = new Date(2013, 04, 19, 11, 00, 17);
var then = new Date(2013, 04, 19, 11, 00, 00);
expect(durationInEnglish(now - then)).toBe('17 seconds ago');
})
});