SlideShare a Scribd company logo
Spectacular Test Runner
for Javascript
CPSC 473-01 Lightning Talk By
Ketul Shah
Sayali Joshi
Introduction
 Built by AngularJS team By Vojta Jína
 A test runner to test your script across cross-browser environment
 Test framework agnostic test runner
 How it works?
 Spawns the web driver specified in its configuration file.
 Executes source code against test code for each connected browser.
Features
 Testing on real browsers
 Remote control
 Speed
 Integration with IDEs and text editors
 Integration with CI servers
 Extensibility
 Debugging
Installation and Configuration
 Available as an npm package
 $ npm install –g karma --save-dev
 Install plugins that your project needs
 $ npm install karma-jasmine karma-chrome-launcher --save-dev
Configuration file
 basePath
 Frameworks
 Files
 Exclude
 Preprocessors
 Reporters
 Port
 Colors
 logLevel
 autoWatch
 Browsers
 singleRun
Browser and Framework Support
 Browser support
 Chrome
 ChromeCanary
 PhantomJS
 Firefox
 Opera
 IE
 Safari
 Testing framework support
 Jasmine
 Mocha
 Qunit
References
 Google Testing Blog, http://googletesting.blogspot.com/2012/11/testacular-spectacular-test-
runner-for.html
 Karma Official Site, https://karma-runner.github.io/0.13/index.html
 https://egghead.io/lessons/unit-testing-introduction-to-karma
Thank You!
Any questions?

More Related Content

PPTX
PhoneGap day 2016 EU: Simulating Cordova Plugins in the Browser
Ryan J. Salva
 
PDF
Cypress new old Selenium
Yaroslav Pernerovsky
 
PPTX
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
Ryan J. Salva
 
ODP
Js Test Driver, JsHamcrest, JsMockito
Fredrik Wendt
 
PPTX
Decapitating Selenium with JavaScript
Alan Parkinson
 
PPTX
Automated Testing with Cucumber, PhantomJS and Selenium
Dev9Com
 
PPT
Hands on web development with play 2.0
Abbas Raza
 
PPTX
Automated testing with Drupal
Promet Source
 
PhoneGap day 2016 EU: Simulating Cordova Plugins in the Browser
Ryan J. Salva
 
Cypress new old Selenium
Yaroslav Pernerovsky
 
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
Ryan J. Salva
 
Js Test Driver, JsHamcrest, JsMockito
Fredrik Wendt
 
Decapitating Selenium with JavaScript
Alan Parkinson
 
Automated Testing with Cucumber, PhantomJS and Selenium
Dev9Com
 
Hands on web development with play 2.0
Abbas Raza
 
Automated testing with Drupal
Promet Source
 

What's hot (20)

PPTX
Introduction to Integration Testing With Cypress
Erez Cohen
 
PDF
Testing with Codeception (Webelement #30)
Adam Štipák
 
PPTX
VorlonJS
Fabrício Catae
 
ODP
Introduction to PhantomJS
Erol Selitektay
 
PPTX
Cypress first impressions
Hans Emmel
 
PPT
Headless BDD & Responsive Test Automation
Shashikant Jagtap
 
PPT
JavaScript Unit Testing
Christian Johansen
 
PPTX
Full stack web development with c# and web assembly - Blazor.Net
Ruwantha Ratnayake
 
PDF
Appium mobile web+dev conference
Isaac Murchie
 
PPT
Google App Engine - Java Style
Peter Lind
 
PPT
ColdFusion Components
jsmith
 
PPT
JavaScript Unit Testing
Christian Johansen
 
ODP
Kickstart Jpa
Max Andersen
 
PPTX
Automated Testing using JavaScript
Simon Guest
 
PPT
watir-webdriver
Amit DEWAN
 
PDF
e2e testing with cypress
Tomasz Bak
 
PPT
Selenium
conect2krish
 
PDF
Chrome Devtools Protocol via Selenium/Appium (English)
Kazuaki Matsuo
 
PDF
Working in Harmony: Manchester - Optimize development and content workflows
Edmund Turbin
 
PPTX
Session 01 - Introduction to Selenium - Part 2
SiddharthSelenium
 
Introduction to Integration Testing With Cypress
Erez Cohen
 
Testing with Codeception (Webelement #30)
Adam Štipák
 
VorlonJS
Fabrício Catae
 
Introduction to PhantomJS
Erol Selitektay
 
Cypress first impressions
Hans Emmel
 
Headless BDD & Responsive Test Automation
Shashikant Jagtap
 
JavaScript Unit Testing
Christian Johansen
 
Full stack web development with c# and web assembly - Blazor.Net
Ruwantha Ratnayake
 
Appium mobile web+dev conference
Isaac Murchie
 
Google App Engine - Java Style
Peter Lind
 
ColdFusion Components
jsmith
 
JavaScript Unit Testing
Christian Johansen
 
Kickstart Jpa
Max Andersen
 
Automated Testing using JavaScript
Simon Guest
 
watir-webdriver
Amit DEWAN
 
e2e testing with cypress
Tomasz Bak
 
Selenium
conect2krish
 
Chrome Devtools Protocol via Selenium/Appium (English)
Kazuaki Matsuo
 
Working in Harmony: Manchester - Optimize development and content workflows
Edmund Turbin
 
Session 01 - Introduction to Selenium - Part 2
SiddharthSelenium
 
Ad

Similar to Cpsc 473 01 lightning talk (20)

PDF
Karma - JS Test Runner
Sebastiano Armeli
 
PPTX
Configure jasmine and karma for code coverage
Deepak More
 
PDF
AngularJS Unit Test
Chiew Carol
 
PDF
What the HTML? - The Holy Grail
James Ford
 
PDF
How do I Write Testable Javascript so I can Test my CF API on Server and Client
ColdFusionConference
 
PPTX
Unit testing in JavaScript with Jasmine and Karma
Andrey Kolodnitsky
 
PDF
Testacular
James Ford
 
PPTX
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
Ortus Solutions, Corp
 
PPTX
How do I write Testable Javascript so I can Test my CF API on Server and Client
Gavin Pickin
 
PPT
Testing in AngularJS
Peter Drinnan
 
PDF
Testing in FrontEnd World by Nikita Galkin
Sigma Software
 
PDF
3 WAYS TO TEST YOUR COLDFUSION API
Gavin Pickin
 
PDF
3 WAYS TO TEST YOUR COLDFUSION API -
Ortus Solutions, Corp
 
PDF
Frontend automation and stability
Máté Nádasdi
 
PDF
Quick tour to front end unit testing using jasmine
Gil Fink
 
PDF
Just Test It
Artyom Trityak
 
PDF
FrontendLab: Воркшоп "Just Test It". Артем Тритяк, Electric Cloud
GeeksLab Odessa
 
PDF
Introduction to Javascript Unit Testing With xUnit.js
Salesforce Developers
 
ODP
Unit Testing and Coverage for AngularJS
Knoldus Inc.
 
PDF
Front-End Testing: Demystified
Seth McLaughlin
 
Karma - JS Test Runner
Sebastiano Armeli
 
Configure jasmine and karma for code coverage
Deepak More
 
AngularJS Unit Test
Chiew Carol
 
What the HTML? - The Holy Grail
James Ford
 
How do I Write Testable Javascript so I can Test my CF API on Server and Client
ColdFusionConference
 
Unit testing in JavaScript with Jasmine and Karma
Andrey Kolodnitsky
 
Testacular
James Ford
 
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
Ortus Solutions, Corp
 
How do I write Testable Javascript so I can Test my CF API on Server and Client
Gavin Pickin
 
Testing in AngularJS
Peter Drinnan
 
Testing in FrontEnd World by Nikita Galkin
Sigma Software
 
3 WAYS TO TEST YOUR COLDFUSION API
Gavin Pickin
 
3 WAYS TO TEST YOUR COLDFUSION API -
Ortus Solutions, Corp
 
Frontend automation and stability
Máté Nádasdi
 
Quick tour to front end unit testing using jasmine
Gil Fink
 
Just Test It
Artyom Trityak
 
FrontendLab: Воркшоп "Just Test It". Артем Тритяк, Electric Cloud
GeeksLab Odessa
 
Introduction to Javascript Unit Testing With xUnit.js
Salesforce Developers
 
Unit Testing and Coverage for AngularJS
Knoldus Inc.
 
Front-End Testing: Demystified
Seth McLaughlin
 
Ad

Recently uploaded (20)

PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
CDH. pptx
AneetaSharma15
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 

Cpsc 473 01 lightning talk

  • 1. Spectacular Test Runner for Javascript CPSC 473-01 Lightning Talk By Ketul Shah Sayali Joshi
  • 2. Introduction  Built by AngularJS team By Vojta Jína  A test runner to test your script across cross-browser environment  Test framework agnostic test runner  How it works?  Spawns the web driver specified in its configuration file.  Executes source code against test code for each connected browser.
  • 3. Features  Testing on real browsers  Remote control  Speed  Integration with IDEs and text editors  Integration with CI servers  Extensibility  Debugging
  • 4. Installation and Configuration  Available as an npm package  $ npm install –g karma --save-dev  Install plugins that your project needs  $ npm install karma-jasmine karma-chrome-launcher --save-dev
  • 5. Configuration file  basePath  Frameworks  Files  Exclude  Preprocessors  Reporters  Port  Colors  logLevel  autoWatch  Browsers  singleRun
  • 6. Browser and Framework Support  Browser support  Chrome  ChromeCanary  PhantomJS  Firefox  Opera  IE  Safari  Testing framework support  Jasmine  Mocha  Qunit
  • 7. References  Google Testing Blog, http://googletesting.blogspot.com/2012/11/testacular-spectacular-test- runner-for.html  Karma Official Site, https://karma-runner.github.io/0.13/index.html  https://egghead.io/lessons/unit-testing-introduction-to-karma