Submit Search
Upload
Test-Driven JavaScript Development (JavaZone 2010)
•
Download as PPTX, PDF
•
5 likes
•
6,004 views
C
Christian Johansen
Follow
My slides from JavaZone 2010. Watch video:
Read less
Read more
Technology
Report
Share
Report
Share
1 of 111
Download now
Recommended
Efficient JavaScript Unit Testing, May 2012
Efficient JavaScript Unit Testing, May 2012
Hazem Saleh
JavaScript + Jenkins = Winning!
JavaScript + Jenkins = Winning!
Eric Wendelin
High Performance JavaScript 2011
High Performance JavaScript 2011
Nicholas Zakas
Test your Javascript! v1.1
Test your Javascript! v1.1
Eric Wendelin
Testing nightwatch, by David Torroija
Testing nightwatch, by David Torroija
David Torroija
Browser Automated Testing Frameworks - Nightwatch.js
Browser Automated Testing Frameworks - Nightwatch.js
Luís Bastião Silva
Nightwatch JS for End to End Tests
Nightwatch JS for End to End Tests
Sriram Angajala
Unit-testing and E2E testing in JS
Unit-testing and E2E testing in JS
Michael Haberman
Recommended
Efficient JavaScript Unit Testing, May 2012
Efficient JavaScript Unit Testing, May 2012
Hazem Saleh
JavaScript + Jenkins = Winning!
JavaScript + Jenkins = Winning!
Eric Wendelin
High Performance JavaScript 2011
High Performance JavaScript 2011
Nicholas Zakas
Test your Javascript! v1.1
Test your Javascript! v1.1
Eric Wendelin
Testing nightwatch, by David Torroija
Testing nightwatch, by David Torroija
David Torroija
Browser Automated Testing Frameworks - Nightwatch.js
Browser Automated Testing Frameworks - Nightwatch.js
Luís Bastião Silva
Nightwatch JS for End to End Tests
Nightwatch JS for End to End Tests
Sriram Angajala
Unit-testing and E2E testing in JS
Unit-testing and E2E testing in JS
Michael Haberman
Introducing Playwright's New Test Runner
Introducing Playwright's New Test Runner
Applitools
AngularJS and Protractor
AngularJS and Protractor
Filipe Falcão
Protractor Tutorial Quality in Agile 2015
Protractor Tutorial Quality in Agile 2015
Andrew Eisenberg
Test-driven Development with Drupal and Codeception (DrupalCamp Brighton)
Test-driven Development with Drupal and Codeception (DrupalCamp Brighton)
Cogapp
Join the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.js
Seth McLaughlin
Front-End Testing: Demystified
Front-End Testing: Demystified
Seth McLaughlin
Automated Frontend Testing
Automated Frontend Testing
Neil Crosby
Automation testing with Drupal 8
Automation testing with Drupal 8
nagpalprachi
Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011
Adam Christian
Carmen Popoviciu - Protractor styleguide | Codemotion Milan 2015
Carmen Popoviciu - Protractor styleguide | Codemotion Milan 2015
Codemotion
Testing Web Applications
Testing Web Applications
Seth McLaughlin
Testing with Codeception (Webelement #30)
Testing with Codeception (Webelement #30)
Adam Štipák
Automated Web Testing using JavaScript
Automated Web Testing using JavaScript
Simon Guest
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8
Sam Becker
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
Jim Lane
Angular UI Testing with Protractor
Angular UI Testing with Protractor
Andrew Eisenberg
PHP Unit Testing in Yii
PHP Unit Testing in Yii
IlPeach
Marcin Wasilczyk - Page objects with selenium
Marcin Wasilczyk - Page objects with selenium
Trójmiejska Grupa Testerska
CI / CD w/ Codeception
CI / CD w/ Codeception
Tudor Barbu
Nightwatch at Tilt
Nightwatch at Tilt
Dave King
Agile JavaScript Testing
Agile JavaScript Testing
Scott Becker
Maintainable JavaScript 2011
Maintainable JavaScript 2011
Nicholas Zakas
More Related Content
What's hot
Introducing Playwright's New Test Runner
Introducing Playwright's New Test Runner
Applitools
AngularJS and Protractor
AngularJS and Protractor
Filipe Falcão
Protractor Tutorial Quality in Agile 2015
Protractor Tutorial Quality in Agile 2015
Andrew Eisenberg
Test-driven Development with Drupal and Codeception (DrupalCamp Brighton)
Test-driven Development with Drupal and Codeception (DrupalCamp Brighton)
Cogapp
Join the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.js
Seth McLaughlin
Front-End Testing: Demystified
Front-End Testing: Demystified
Seth McLaughlin
Automated Frontend Testing
Automated Frontend Testing
Neil Crosby
Automation testing with Drupal 8
Automation testing with Drupal 8
nagpalprachi
Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011
Adam Christian
Carmen Popoviciu - Protractor styleguide | Codemotion Milan 2015
Carmen Popoviciu - Protractor styleguide | Codemotion Milan 2015
Codemotion
Testing Web Applications
Testing Web Applications
Seth McLaughlin
Testing with Codeception (Webelement #30)
Testing with Codeception (Webelement #30)
Adam Štipák
Automated Web Testing using JavaScript
Automated Web Testing using JavaScript
Simon Guest
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8
Sam Becker
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
Jim Lane
Angular UI Testing with Protractor
Angular UI Testing with Protractor
Andrew Eisenberg
PHP Unit Testing in Yii
PHP Unit Testing in Yii
IlPeach
Marcin Wasilczyk - Page objects with selenium
Marcin Wasilczyk - Page objects with selenium
Trójmiejska Grupa Testerska
CI / CD w/ Codeception
CI / CD w/ Codeception
Tudor Barbu
Nightwatch at Tilt
Nightwatch at Tilt
Dave King
What's hot
(20)
Introducing Playwright's New Test Runner
Introducing Playwright's New Test Runner
AngularJS and Protractor
AngularJS and Protractor
Protractor Tutorial Quality in Agile 2015
Protractor Tutorial Quality in Agile 2015
Test-driven Development with Drupal and Codeception (DrupalCamp Brighton)
Test-driven Development with Drupal and Codeception (DrupalCamp Brighton)
Join the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.js
Front-End Testing: Demystified
Front-End Testing: Demystified
Automated Frontend Testing
Automated Frontend Testing
Automation testing with Drupal 8
Automation testing with Drupal 8
Jellyfish, JSCONF 2011
Jellyfish, JSCONF 2011
Carmen Popoviciu - Protractor styleguide | Codemotion Milan 2015
Carmen Popoviciu - Protractor styleguide | Codemotion Milan 2015
Testing Web Applications
Testing Web Applications
Testing with Codeception (Webelement #30)
Testing with Codeception (Webelement #30)
Automated Web Testing using JavaScript
Automated Web Testing using JavaScript
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
Angular UI Testing with Protractor
Angular UI Testing with Protractor
PHP Unit Testing in Yii
PHP Unit Testing in Yii
Marcin Wasilczyk - Page objects with selenium
Marcin Wasilczyk - Page objects with selenium
CI / CD w/ Codeception
CI / CD w/ Codeception
Nightwatch at Tilt
Nightwatch at Tilt
Viewers also liked
Agile JavaScript Testing
Agile JavaScript Testing
Scott Becker
Maintainable JavaScript 2011
Maintainable JavaScript 2011
Nicholas Zakas
Scalable JavaScript Application Architecture
Scalable JavaScript Application Architecture
Nicholas Zakas
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)
Nitya Narasimhan
The Art of AngularJS - DeRailed 2014
The Art of AngularJS - DeRailed 2014
Matt Raible
React in Native Apps - Meetup React - 20150409
React in Native Apps - Meetup React - 20150409
Minko3D
React JS and why it's awesome
React JS and why it's awesome
Andrew Hull
Becoming Node.js ninja on Cloud Foundry
Becoming Node.js ninja on Cloud Foundry
Raja Rao DV
Testing nodejs apps
Testing nodejs apps
felipefsilva
Building a Single-Page App: Backbone, Node.js, and Beyond
Building a Single-Page App: Backbone, Node.js, and Beyond
Spike Brehm
[C5]deview 2012 nodejs
[C5]deview 2012 nodejs
NAVER D2
Compose Async with RxJS
Compose Async with RxJS
Kyung Yeol Kim
소셜게임 서버 개발 관점에서 본 Node.js의 장단점과 대안
소셜게임 서버 개발 관점에서 본 Node.js의 장단점과 대안
Jeongsang Baek
프론트엔드 웹앱 프레임웍 - Bootstrap, Backbone 그리고 AngularJS
프론트엔드 웹앱 프레임웍 - Bootstrap, Backbone 그리고 AngularJS
동수 장
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Paulo Ragonha
RESTful API Design, Second Edition
RESTful API Design, Second Edition
Apigee | Google Cloud
모바일 컨버전스 5가지 패러다임 업로드용
모바일 컨버전스 5가지 패러다임 업로드용
misia85
Meteor 0.3.6 Preview
Meteor 0.3.6 Preview
Juntai Park
제2회 hello world 오픈세미나 hello world-raphael차트
제2회 hello world 오픈세미나 hello world-raphael차트
NAVER D2
The SPDY Protocol
The SPDY Protocol
Fabian Lange
Viewers also liked
(20)
Agile JavaScript Testing
Agile JavaScript Testing
Maintainable JavaScript 2011
Maintainable JavaScript 2011
Scalable JavaScript Application Architecture
Scalable JavaScript Application Architecture
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)
The Art of AngularJS - DeRailed 2014
The Art of AngularJS - DeRailed 2014
React in Native Apps - Meetup React - 20150409
React in Native Apps - Meetup React - 20150409
React JS and why it's awesome
React JS and why it's awesome
Becoming Node.js ninja on Cloud Foundry
Becoming Node.js ninja on Cloud Foundry
Testing nodejs apps
Testing nodejs apps
Building a Single-Page App: Backbone, Node.js, and Beyond
Building a Single-Page App: Backbone, Node.js, and Beyond
[C5]deview 2012 nodejs
[C5]deview 2012 nodejs
Compose Async with RxJS
Compose Async with RxJS
소셜게임 서버 개발 관점에서 본 Node.js의 장단점과 대안
소셜게임 서버 개발 관점에서 본 Node.js의 장단점과 대안
프론트엔드 웹앱 프레임웍 - Bootstrap, Backbone 그리고 AngularJS
프론트엔드 웹앱 프레임웍 - Bootstrap, Backbone 그리고 AngularJS
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
Single Page Web Applications with CoffeeScript, Backbone and Jasmine
RESTful API Design, Second Edition
RESTful API Design, Second Edition
모바일 컨버전스 5가지 패러다임 업로드용
모바일 컨버전스 5가지 패러다임 업로드용
Meteor 0.3.6 Preview
Meteor 0.3.6 Preview
제2회 hello world 오픈세미나 hello world-raphael차트
제2회 hello world 오픈세미나 hello world-raphael차트
The SPDY Protocol
The SPDY Protocol
Similar to Test-Driven JavaScript Development (JavaZone 2010)
JavaScript Unit Testing
JavaScript Unit Testing
Christian Johansen
Testing Tools
Testing Tools
Ted Husted
Joomla! Testing - J!DD Germany 2016
Joomla! Testing - J!DD Germany 2016
Yves Hoppe
Functional Testing Swing Applications with Frankenstein
Functional Testing Swing Applications with Frankenstein
vivek_prahlad
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
mguillem
Codeception introduction and use in Yii
Codeception introduction and use in Yii
IlPeach
Pragmatic Parallels: Java and JavaScript
Pragmatic Parallels: Java and JavaScript
davejohnson
Testing Ext JS and Sencha Touch
Testing Ext JS and Sencha Touch
Mats Bryntse
Selenium Testing Training in Bangalore
Selenium Testing Training in Bangalore
rajkamal560066
Java script unit testing
Java script unit testing
Mats Bryntse
Testing In Java
Testing In Java
David Noble
Testing In Java4278
Testing In Java4278
contact.bsingh
Release with confidence
Release with confidence
John Congdon
Making the most of your Test Suite
Making the most of your Test Suite
ericholscher
Qa process
Qa process
Aila Bogasieru
Qa process
Qa process
Aila Bogasieru
Let’s start Continuous Integration with jenkins
Let’s start Continuous Integration with jenkins
Tomohide Kakeya
Embedded Recipes 2019 - Testing firmware the devops way
Embedded Recipes 2019 - Testing firmware the devops way
Anne Nicolas
Jenkins & IaC
Jenkins & IaC
HungWei Chiu
SwtBot: Unit Testing Made Easy
SwtBot: Unit Testing Made Easy
Ankit Goel
Similar to Test-Driven JavaScript Development (JavaZone 2010)
(20)
JavaScript Unit Testing
JavaScript Unit Testing
Testing Tools
Testing Tools
Joomla! Testing - J!DD Germany 2016
Joomla! Testing - J!DD Germany 2016
Functional Testing Swing Applications with Frankenstein
Functional Testing Swing Applications with Frankenstein
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
Codeception introduction and use in Yii
Codeception introduction and use in Yii
Pragmatic Parallels: Java and JavaScript
Pragmatic Parallels: Java and JavaScript
Testing Ext JS and Sencha Touch
Testing Ext JS and Sencha Touch
Selenium Testing Training in Bangalore
Selenium Testing Training in Bangalore
Java script unit testing
Java script unit testing
Testing In Java
Testing In Java
Testing In Java4278
Testing In Java4278
Release with confidence
Release with confidence
Making the most of your Test Suite
Making the most of your Test Suite
Qa process
Qa process
Qa process
Qa process
Let’s start Continuous Integration with jenkins
Let’s start Continuous Integration with jenkins
Embedded Recipes 2019 - Testing firmware the devops way
Embedded Recipes 2019 - Testing firmware the devops way
Jenkins & IaC
Jenkins & IaC
SwtBot: Unit Testing Made Easy
SwtBot: Unit Testing Made Easy
Recently uploaded
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
Samir Dash
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
apidays
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Jago de Vreede
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
apidays
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Orbitshub
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Recently uploaded
(20)
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Test-Driven JavaScript Development (JavaZone 2010)
1.
Test-Driven JavaScript Eliminating
fear and chance from front-end web development
2.
Christian Johansen http://cjohansen.no/
http://github.com/cjohansen http://gitorious.org/~cjohansen http://twitter.com/cjno
3.
My book http://tddjs.com/
4.
5.
JavaScript testing challenges
6.
7.
In-browser test frameworks
8.
9.
Can test any
code, regardless of framework
10.
In-browser runner
11.
Built-in mocks
12.
Can ship results
over the internet
13.
Supports many output
formats (JUnit XML, TAP, JSON ++)http://developer.yahoo.com/yui/3/test/
14.
YUI Test case
anatomy
15.
16.
YUI Test scaffolding
17.
YUI Test run
18.
19.
Run in any
browser
20.
Built-in mocks
21.
22.
23.
Headless runners
24.
25.
Runs in browser,
Rhino and Node.js
26.
Emulate DOM with
env.js
27.
28.
JSpec Rhino scaffolding
29.
JSpec Rhino run
30.
31.
32.
Rhino Just another
runtime Not like any browsers actually in use
33.
env.js Just another
DOM implementation Not like any DOM implementation in actual use
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
I hear these
are popular
44.
...and these
45.
Manual testing is
time consuming
46.
The best from
both worlds
47.
JsTestDriver
48.
JsTestDriver.conf
49.
50.
Start JsTestDriver Server
java -jar JsTestDriver-1.2.2.jar --port 4224
51.
Capture Target Browsers
52.
53.
54.
55.
56.
57.
JsTestDriver Run
58.
59.
Supports QUnit, YUI,
Jasmine
60.
JUnit XML Output
61.
62.
Pretty colors
63.
With errors
64.
Also... $ jsautotest Runs
affected tests on each save
65.
Eclipse
66.
Eclipse
67.
Eclipse run
68.
IntelliJ IDEA plugin
also available
69.
Just released
70.
JavaScript testing challenges
71.
72.
Makes tests run
slow(er)
73.
74.
Looser coupling
75.
76.
Anatomy
77.
onSubmit messageFormController this.view
(form) this.model (cometClient) messageListController this.view (dl) this.model (cometClient) cometClient
78.
79.
observable supports same
API as cometClient
80.
81.
82.
Cross-browser issues
83.
84.
Submitting message
85.
86.
Testable
87.
88.
89.
Verify that the
handler is postMessage, bound to the controller
90.
91.
Disclaimer: I wrote
that http://cjohansen.no/sinon/
92.
93.
Does not interrupt
normal execution
94.
95.
96.
Automatically restores all
fakes
97.
98.
Testing the handler
99.
100.
101.
Verify that the
handler is postMessage, bound to the controller
102.
103.
Use an ad
hoc stub
104.
Integration: Simulate
105.
Testing actual network
access Using Sinon.JS
106.
Configure a fake
server
107.
Fake JSON response
{ "message": [{ "id": 1, "user": "Johansen", "message": "oh hai" }], "token": "1" } The cometClient format, an array of one new message
108.
Force fake server
to respond
109.
110.
Fake server recognizes
/chat+/
111.
this.server.respond(); fakes a
response
112.
113.
Causes slow(er) tests
114.
115.
Toolchain
116.
117.
JsTestDriver and Maven
http://code.google.com/p/jsd-maven/
118.
XML Pushups
119.
120.
Can you take
one more?
121.
122.
Continuous Integration
123.
124.
125.
126.
java -jar test/JsTestDriver-1.2.2.jar
br /> --config jsTestDriver.conf br /> --reset br /> --server http://localhost:4223 br /> --tests all br /> --testOutput .
127.
Project overview
128.
Test case
129.
Failed test (IE6)
130.
131.
Autotest
132.
Test with Maven
133.
CI with Hudson
134.
135.
onSubmit messageFormController this.view
(form) this.model (cometClient) messageListController this.view (dl) this.model (cometClient) cometClient
136.
Questions?
137.
My book http://tddjs.com/
138.
139.
http://github.com/cjohansen/
140.
http://gitorious.org/~cjohansen/
141.
http://twitter.com/cjno/
142.
christian@cjohansen.no
Download now