Enviar pesquisa
Carregar
Dart Unit Testing
•
2 gostaram
•
1,912 visualizações
Matt Norris
Seguir
Talk given at Google Developer Group NYC in February 2014 on Dart unit testing.
Leia menos
Leia mais
Tecnologia
Vista de apresentação de diapositivos
Denunciar
Compartilhar
Vista de apresentação de diapositivos
Denunciar
Compartilhar
1 de 23
Baixar agora
Baixar para ler offline
Recomendados
RSpec: What, How and Why
RSpec: What, How and Why
Ratan Sebastian
AngularJS Unit Testing w/Karma and Jasmine
AngularJS Unit Testing w/Karma and Jasmine
foxp2code
Intro to Unit Testing in AngularJS
Intro to Unit Testing in AngularJS
Jim Lynch
PgTAP Best Practices
PgTAP Best Practices
David Wheeler
Test-Driven Development of AngularJS Applications
Test-Driven Development of AngularJS Applications
FITC
Test driven development with react
Test driven development with react
Leon Bezuidenhout
How To Test Everything
How To Test Everything
noelrap
Data driven testing using Integrant & Spec
Data driven testing using Integrant & Spec
Leon Mergen
Recomendados
RSpec: What, How and Why
RSpec: What, How and Why
Ratan Sebastian
AngularJS Unit Testing w/Karma and Jasmine
AngularJS Unit Testing w/Karma and Jasmine
foxp2code
Intro to Unit Testing in AngularJS
Intro to Unit Testing in AngularJS
Jim Lynch
PgTAP Best Practices
PgTAP Best Practices
David Wheeler
Test-Driven Development of AngularJS Applications
Test-Driven Development of AngularJS Applications
FITC
Test driven development with react
Test driven development with react
Leon Bezuidenhout
How To Test Everything
How To Test Everything
noelrap
Data driven testing using Integrant & Spec
Data driven testing using Integrant & Spec
Leon Mergen
Unit Test Your Database
Unit Test Your Database
David Wheeler
Advanced Jasmine - Front-End JavaScript Unit Testing
Advanced Jasmine - Front-End JavaScript Unit Testing
Lars Thorup
Painless JavaScript Testing with Jest
Painless JavaScript Testing with Jest
Michał Pierzchała
Taking a Test Drive
Taking a Test Drive
Graham Lee
Is writing performant code too expensive?
Is writing performant code too expensive?
Tomasz Kowalczewski
Testing javascript in the frontend
Testing javascript in the frontend
Frederic CABASSUT
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Google mock for dummies
Google mock for dummies
Harry Potter
Angular testing
Angular testing
Raissa Ferreira
JavaScript TDD with Jasmine and Karma
JavaScript TDD with Jasmine and Karma
Christopher Bartling
Advanced PHPUnit Testing
Advanced PHPUnit Testing
Mike Lively
Apex Testing and Best Practices
Apex Testing and Best Practices
Jitendra Zaa
Testing with VS2010 - A Bugs Life
Testing with VS2010 - A Bugs Life
Peter Gfader
Unit testing of java script and angularjs application using Karma Jasmine Fra...
Unit testing of java script and angularjs application using Karma Jasmine Fra...
Samyak Bhalerao
PhpUnit Best Practices
PhpUnit Best Practices
Edorian
PHPUnit best practices presentation
PHPUnit best practices presentation
Thanh Robi
Intro to testing Javascript with jasmine
Intro to testing Javascript with jasmine
Timothy Oxley
Introduction to mysql part 3
Introduction to mysql part 3
baabtra.com - No. 1 supplier of quality freshers
Test Driven Development with PHPUnit
Test Driven Development with PHPUnit
Mindfire Solutions
Unit Testing JavaScript Applications
Unit Testing JavaScript Applications
Ynon Perek
Dart Workshop
Dart Workshop
Dmitry Buzdin
Automated Frontend Testing
Automated Frontend Testing
Neil Crosby
Mais conteúdo relacionado
Mais procurados
Unit Test Your Database
Unit Test Your Database
David Wheeler
Advanced Jasmine - Front-End JavaScript Unit Testing
Advanced Jasmine - Front-End JavaScript Unit Testing
Lars Thorup
Painless JavaScript Testing with Jest
Painless JavaScript Testing with Jest
Michał Pierzchała
Taking a Test Drive
Taking a Test Drive
Graham Lee
Is writing performant code too expensive?
Is writing performant code too expensive?
Tomasz Kowalczewski
Testing javascript in the frontend
Testing javascript in the frontend
Frederic CABASSUT
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Google mock for dummies
Google mock for dummies
Harry Potter
Angular testing
Angular testing
Raissa Ferreira
JavaScript TDD with Jasmine and Karma
JavaScript TDD with Jasmine and Karma
Christopher Bartling
Advanced PHPUnit Testing
Advanced PHPUnit Testing
Mike Lively
Apex Testing and Best Practices
Apex Testing and Best Practices
Jitendra Zaa
Testing with VS2010 - A Bugs Life
Testing with VS2010 - A Bugs Life
Peter Gfader
Unit testing of java script and angularjs application using Karma Jasmine Fra...
Unit testing of java script and angularjs application using Karma Jasmine Fra...
Samyak Bhalerao
PhpUnit Best Practices
PhpUnit Best Practices
Edorian
PHPUnit best practices presentation
PHPUnit best practices presentation
Thanh Robi
Intro to testing Javascript with jasmine
Intro to testing Javascript with jasmine
Timothy Oxley
Introduction to mysql part 3
Introduction to mysql part 3
baabtra.com - No. 1 supplier of quality freshers
Test Driven Development with PHPUnit
Test Driven Development with PHPUnit
Mindfire Solutions
Unit Testing JavaScript Applications
Unit Testing JavaScript Applications
Ynon Perek
Mais procurados
(20)
Unit Test Your Database
Unit Test Your Database
Advanced Jasmine - Front-End JavaScript Unit Testing
Advanced Jasmine - Front-End JavaScript Unit Testing
Painless JavaScript Testing with Jest
Painless JavaScript Testing with Jest
Taking a Test Drive
Taking a Test Drive
Is writing performant code too expensive?
Is writing performant code too expensive?
Testing javascript in the frontend
Testing javascript in the frontend
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Google mock for dummies
Google mock for dummies
Angular testing
Angular testing
JavaScript TDD with Jasmine and Karma
JavaScript TDD with Jasmine and Karma
Advanced PHPUnit Testing
Advanced PHPUnit Testing
Apex Testing and Best Practices
Apex Testing and Best Practices
Testing with VS2010 - A Bugs Life
Testing with VS2010 - A Bugs Life
Unit testing of java script and angularjs application using Karma Jasmine Fra...
Unit testing of java script and angularjs application using Karma Jasmine Fra...
PhpUnit Best Practices
PhpUnit Best Practices
PHPUnit best practices presentation
PHPUnit best practices presentation
Intro to testing Javascript with jasmine
Intro to testing Javascript with jasmine
Introduction to mysql part 3
Introduction to mysql part 3
Test Driven Development with PHPUnit
Test Driven Development with PHPUnit
Unit Testing JavaScript Applications
Unit Testing JavaScript Applications
Semelhante a Dart Unit Testing
Dart Workshop
Dart Workshop
Dmitry Buzdin
Automated Frontend Testing
Automated Frontend Testing
Neil Crosby
Testing ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NET
Ben Hall
Keep your Wicket application in production
Keep your Wicket application in production
Martijn Dashorst
Google guava
Google guava
Thomas Ferris Nicolaisen
Nativescript angular
Nativescript angular
Christoffer Noring
Bkbiet day2 & 3
Bkbiet day2 & 3
mihirio
2012 JDays Bad Tests Good Tests
2012 JDays Bad Tests Good Tests
Tomek Kaczanowski
Web CrawlersrcedusmulylecrawlerController.javaWeb Crawler.docx
Web CrawlersrcedusmulylecrawlerController.javaWeb Crawler.docx
celenarouzie
The vJUG talk about jOOQ: Get Back in Control of Your SQL
The vJUG talk about jOOQ: Get Back in Control of Your SQL
Lukas Eder
33rd Degree 2013, Bad Tests, Good Tests
33rd Degree 2013, Bad Tests, Good Tests
Tomek Kaczanowski
Secret unit testing tools no one ever told you about
Secret unit testing tools no one ever told you about
Dror Helper
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
Michelangelo van Dam
Full Stack Unit Testing
Full Stack Unit Testing
GlobalLogic Ukraine
Quality Assurance for PHP projects - ZendCon 2012
Quality Assurance for PHP projects - ZendCon 2012
Michelangelo van Dam
Altitude San Francisco 2018: Testing with Fastly Workshop
Altitude San Francisco 2018: Testing with Fastly Workshop
Fastly
Clean Code - A&BP CC
Clean Code - A&BP CC
JWORKS powered by Ordina
Testing persistence in PHP with DbUnit
Testing persistence in PHP with DbUnit
Peter Wilcsinszky
Pragmatic unittestingwithj unit
Pragmatic unittestingwithj unit
liminescence
Using of TDD practices for Magento
Using of TDD practices for Magento
Ivan Chepurnyi
Semelhante a Dart Unit Testing
(20)
Dart Workshop
Dart Workshop
Automated Frontend Testing
Automated Frontend Testing
Testing ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NET
Keep your Wicket application in production
Keep your Wicket application in production
Google guava
Google guava
Nativescript angular
Nativescript angular
Bkbiet day2 & 3
Bkbiet day2 & 3
2012 JDays Bad Tests Good Tests
2012 JDays Bad Tests Good Tests
Web CrawlersrcedusmulylecrawlerController.javaWeb Crawler.docx
Web CrawlersrcedusmulylecrawlerController.javaWeb Crawler.docx
The vJUG talk about jOOQ: Get Back in Control of Your SQL
The vJUG talk about jOOQ: Get Back in Control of Your SQL
33rd Degree 2013, Bad Tests, Good Tests
33rd Degree 2013, Bad Tests, Good Tests
Secret unit testing tools no one ever told you about
Secret unit testing tools no one ever told you about
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
Full Stack Unit Testing
Full Stack Unit Testing
Quality Assurance for PHP projects - ZendCon 2012
Quality Assurance for PHP projects - ZendCon 2012
Altitude San Francisco 2018: Testing with Fastly Workshop
Altitude San Francisco 2018: Testing with Fastly Workshop
Clean Code - A&BP CC
Clean Code - A&BP CC
Testing persistence in PHP with DbUnit
Testing persistence in PHP with DbUnit
Pragmatic unittestingwithj unit
Pragmatic unittestingwithj unit
Using of TDD practices for Magento
Using of TDD practices for Magento
Último
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Último
(20)
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Dart Unit Testing
1.
Dart Unit Testing Matt
Norris @MattNorrisMe
2.
What will we
cover? Client tests Server tests
3.
Why test?
4.
I must have
put a decimal point in the wrong place. I always mess up some mundane detail!
5.
6.
Client tests
7.
HTML unit test test_index.dart import
'package:unittest/unittest.dart'; import 'package:unittest/html_enhanced_config.dart'; ... main() { useHtmlEnhancedConfiguration(); test("url includes scheme", () { expect(isValidUrl(“www.dartlang.org”), false); expect(isValidUrl(“http://www.dartlang.org”), true); });
8.
HTML unit test test_index.dart import
'package:unittest/unittest.dart'; import 'package:unittest/html_enhanced_config.dart'; ... main() { useHtmlEnhancedConfiguration(); test("url includes scheme", () { expect(isValidUrl(“www.dartlang.org”), false); expect(isValidUrl(“http://www.dartlang.org”), true); });
9.
HTML unit test test_index.dart import
'package:unittest/unittest.dart'; import 'package:unittest/html_enhanced_config.dart'; ... main() { useHtmlEnhancedConfiguration(); test("url includes scheme", () { expect(isValidUrl(“www.dartlang.org”), false); expect(isValidUrl(“http://www.dartlang.org”), true); });
10.
HTML unit test
11.
12.
Headless HTML unit
test $ content_shell --dump-render-tree web/test_index.html Content-Type: text/plain PASS All 2 tests passed Collapse All
13.
Server
14.
server.dart void main() { ... app.post("/").listen((request)
{ String url = request.param('url'); String hash = toHash(url); client.set(hash, url).then((_)=>request.response.json(hash);); }); ...
15.
Server tests
16.
server_tests.dart import 'package:unittest/unittest.dart'; import 'package:unittest/vm_config.dart'; import
'server.dart' as server; void main() { useVMConfiguration(); String URL = 'http://www.meetup.com/gdg-silicon-valley’; test('HashURL', () { expect(server.toHash(URL), isNotNull); expect(server.toHash(URL), '287b6d95'); ...
17.
server_tests.dart import 'package:unittest/unittest.dart'; import 'package:unittest/vm_config.dart'; import
'server.dart' as server; void main() { useVMConfiguration(); String URL = 'http://www.meetup.com/gdg-silicon-valley’; test('HashURL', () { expect(server.toHash(URL), isNotNull); expect(server.toHash(URL), '287b6d95'); ...
18.
server_tests.dart import 'package:unittest/unittest.dart'; import 'package:unittest/vm_config.dart'; import
'server.dart' as server; void main() { useVMConfiguration(); String URL = 'http://www.meetup.com/gdg-silicon-valley’; test('HashURL', () { expect(server.toHash(URL), isNotNull); expect(server.toHash(URL), '287b6d95'); ...
19.
VM unit tests $
dart server_tests.dart PASS: HashURL
20.
What did we
cover? Client tests Server tests
21.
What should you
do? Try Dart Test things Deploy!
22.
Such reference... much
testing Project github.com/mattnorris/dart-url-shortener Original talk youtu.be/22pE1IP-yoY Continuous Integration in the Cloud drone.io
23.
Thank you! Questions?
Baixar agora