SlideShare a Scribd company logo
Unit Test/JUTE Workshop

Mark Ethan Trostler trostler@yahoo-
             inc.com
             @zzoass
Minimize Your Pain

•Write Small
•Write Simple
•Test Early
•Test Often
Write Small – Write Simple

•Isolate code to test
•Loosely couple dependencies
•Be obvious
•Optimize last
Test Early – Test Often



       Test Now
Install JUTE

•NodeJS (nodejs.org)
•npm (curl http://npmjs.org/install.sh | sh)
•JUTE (npm install jute –g)

       Yahoo’s: % yinsti –b test jute
Write Some Tests!



http://yuilibrary.com/yui/docs/test/
What To Test
     Your Function/Method ONLY!!

Mock/Manage Dependencies:
•Explicit
•Internal
•Environment
Run In Browser



Load up your HTML & let it fly!
Run Within JUTE - Browser

% npmconfig set jute:<variable><value>
%....
% yinst restart jute –g

Load JUTE web UI & run some tests!
Run Within JUTE – Command line

% jute_submit_test –test ….

In parallel each captured browser runs
every test
Run Within JUTE – Selenium

Grab latest selenium-server-standalone
% java –jar selenium…
% jute_submit_test –sel_host<> --test …

Serialized tests
Run Within JUTE – V8


% jute_submit_test –v8 <> --test …

Serialized tests
Run Within JUTE – Selenium Grid
% jute_submit_test –sel_host<> --
seleniums 5 --test …

Tests in ‘seleniums’ chunks to each
Selenium slave in parallel.

Will block if you don’t have enough slaves!
Keep Writing Those Tests!!



Yahoo wants 75% coverage!

More Related Content

PDF
Let's make this test suite run faster
PDF
Let's make this test suite run faster! SoftShake 2010
PDF
Let's make this test suite run faster - Paris JUG 2011
PDF
My own preferred testing tools - Paris JUG 2011
PPTX
QA Fest 2019. Олексій Остапов. Тестування навантаження за 5 хв. Порівняння до...
PDF
Unit testing for WordPress
PDF
Automated testing in Drupal
PPTX
Odoo profiler
Let's make this test suite run faster
Let's make this test suite run faster! SoftShake 2010
Let's make this test suite run faster - Paris JUG 2011
My own preferred testing tools - Paris JUG 2011
QA Fest 2019. Олексій Остапов. Тестування навантаження за 5 хв. Порівняння до...
Unit testing for WordPress
Automated testing in Drupal
Odoo profiler

What's hot (20)

PPT
JavaScript Unit Testing
PPT
JavaScript Unit Testing
PDF
Unit testing in php
PPTX
Postmortem of a uwp xaml application development
PPTX
Protractor survival guide
PDF
Scraping recalcitrant web sites with Python & Selenium
KEY
Jellyfish, JSCONF 2011
PPTX
Vorlon.js
PPTX
Protractor training
PDF
Сергей Больщиков "Protractor Tips & Tricks"
PDF
Blast your app with Gatling! by Stephane Landelle
PDF
Node.js Development Workflow Automation with Grunt.js
PDF
Automated Web Testing using JavaScript
PPTX
VorlonJS
ODP
Apache JMeter Introduction
PDF
Cypress - Best Practices
PPT
2014 whyjavayoasttopic1
PPTX
How to make your functional tests really quick
PPTX
Try harder or go home
PDF
Making cross browser tests beautiful
JavaScript Unit Testing
JavaScript Unit Testing
Unit testing in php
Postmortem of a uwp xaml application development
Protractor survival guide
Scraping recalcitrant web sites with Python & Selenium
Jellyfish, JSCONF 2011
Vorlon.js
Protractor training
Сергей Больщиков "Protractor Tips & Tricks"
Blast your app with Gatling! by Stephane Landelle
Node.js Development Workflow Automation with Grunt.js
Automated Web Testing using JavaScript
VorlonJS
Apache JMeter Introduction
Cypress - Best Practices
2014 whyjavayoasttopic1
How to make your functional tests really quick
Try harder or go home
Making cross browser tests beautiful
Ad

Viewers also liked (6)

PPTX
Multi-Process JavaScript Architectures
PDF
Living fearlessly e book
PPT
Greenrevolution
PPTX
Gm’s position on the u
DOCX
PDF
Testable JavaScript: Application Architecture
Multi-Process JavaScript Architectures
Living fearlessly e book
Greenrevolution
Gm’s position on the u
Testable JavaScript: Application Architecture
Ad

Similar to JUTE Workshop (20)

PDF
TDD super mondays-june-2014
PDF
junit-160729073220 eclipse software testing.pdf
PPSX
PPTX
Browser Automated Testing Frameworks - Nightwatch.js
PPTX
Automated Testing but like for PowerShell (April 2012)
PPTX
An Introduction to unit testing
PPTX
Azphp phpunit-jenkins
PPTX
Creating testing tools to support development
PPTX
Automate Everything! (No stress development/Tallinn)
ODP
PhpUnit & web driver
PPT
Automated Unit Testing
PDF
Jest: Frontend Testing leicht gemacht @EnterJS2018
PDF
The Many Ways to Test Your React App
PDF
Puppet Development Workflow
PDF
Das Frontend richtig Testen – mit Jest @Developer Week 2018
PPTX
Skillwise Unit Testing
ODP
Selenium testing IDE 101
PDF
Making the most of your Test Suite
PDF
An Introduction to Test Driven Development
PDF
Comment j'ai mis ma suite de tests au régime en 5 minutes par jour
TDD super mondays-june-2014
junit-160729073220 eclipse software testing.pdf
Browser Automated Testing Frameworks - Nightwatch.js
Automated Testing but like for PowerShell (April 2012)
An Introduction to unit testing
Azphp phpunit-jenkins
Creating testing tools to support development
Automate Everything! (No stress development/Tallinn)
PhpUnit & web driver
Automated Unit Testing
Jest: Frontend Testing leicht gemacht @EnterJS2018
The Many Ways to Test Your React App
Puppet Development Workflow
Das Frontend richtig Testen – mit Jest @Developer Week 2018
Skillwise Unit Testing
Selenium testing IDE 101
Making the most of your Test Suite
An Introduction to Test Driven Development
Comment j'ai mis ma suite de tests au régime en 5 minutes par jour

Recently uploaded (20)

PPT
Geologic Time for studying geology for geologist
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
The various Industrial Revolutions .pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPT
What is a Computer? Input Devices /output devices
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Unlock new opportunities with location data.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
DOCX
search engine optimization ppt fir known well about this
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Hybrid model detection and classification of lung cancer
Geologic Time for studying geology for geologist
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Chapter 5: Probability Theory and Statistics
The various Industrial Revolutions .pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
What is a Computer? Input Devices /output devices
Web Crawler for Trend Tracking Gen Z Insights.pptx
observCloud-Native Containerability and monitoring.pptx
A review of recent deep learning applications in wood surface defect identifi...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
sustainability-14-14877-v2.pddhzftheheeeee
Unlock new opportunities with location data.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
DP Operators-handbook-extract for the Mautical Institute
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
search engine optimization ppt fir known well about this
Taming the Chaos: How to Turn Unstructured Data into Decisions
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Hybrid model detection and classification of lung cancer

JUTE Workshop

Editor's Notes

  • #3: Get manager-speak out of the wayYou have heard all of this before from industry – from manager – from co-workers - there’s a reason: less pain for you – less pain for you managers – better codeWhy everyone all up in me about these things?You probably already agree it’s a good thingmanagers NEED you to succeedSmall = testableSimple = testable – minimize side effects – side effects harder to test – harder to capture – harder to explain
  • #4: Lots of little – no bigPer function – test ONE THING AT A TIMEDo no create - injectIsolate what you want to testMocking out dependenciesCreating causes tight couplingClever comes later – if at all – don’t get cute or too clever – optimize LATER
  • #5: NOWDon’t have to test first -
  • #6: NOWDon’t have to test first -
  • #7: NOWDon’t have to test first -
  • #8: NOWDon’t have to test first -
  • #9: NOWDon’t have to test first -
  • #10: NOWDon’t have to test first -
  • #11: NOWDon’t have to test first -
  • #12: NOWDon’t have to test first -
  • #13: NOWDon’t have to test first -
  • #14: NOWDon’t have to test first -
  • #15: NOWDon’t have to test first -