Enviar búsqueda
Cargar
Karma JS Test Runner Overview
•
12 recomendaciones
•
10,939 vistas
Título mejorado por IA
S
Sebastiano Armeli
Seguir
Talk given at MelbJS - August 2013
Leer menos
Leer más
Tecnología
Educación
Denunciar
Compartir
Denunciar
Compartir
1 de 34
Descargar ahora
Descargar para leer sin conexión
Recomendados
AngularJS Unit Testing
AngularJS Unit Testing
Prince Norin
Angularjs - Unit testing introduction
Angularjs - Unit testing introduction
Nir Kaufman
AngularJS Unit Testing w/Karma and Jasmine
AngularJS Unit Testing w/Karma and Jasmine
foxp2code
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
Unit testing in JavaScript with Jasmine and Karma
Unit testing in JavaScript with Jasmine and Karma
Andrey Kolodnitsky
AngularJS Unit Test
AngularJS Unit Test
Chiew Carol
Intro to testing Javascript with jasmine
Intro to testing Javascript with jasmine
Timothy Oxley
Testing in AngularJS
Testing in AngularJS
Peter Drinnan
Recomendados
AngularJS Unit Testing
AngularJS Unit Testing
Prince Norin
Angularjs - Unit testing introduction
Angularjs - Unit testing introduction
Nir Kaufman
AngularJS Unit Testing w/Karma and Jasmine
AngularJS Unit Testing w/Karma and Jasmine
foxp2code
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
Unit testing in JavaScript with Jasmine and Karma
Unit testing in JavaScript with Jasmine and Karma
Andrey Kolodnitsky
AngularJS Unit Test
AngularJS Unit Test
Chiew Carol
Intro to testing Javascript with jasmine
Intro to testing Javascript with jasmine
Timothy Oxley
Testing in AngularJS
Testing in AngularJS
Peter Drinnan
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
Christopher Bartling
Angular testing
Angular testing
Raissa Ferreira
Test-Driven Development of AngularJS Applications
Test-Driven Development of AngularJS Applications
FITC
Unit Testing and Coverage for AngularJS
Unit Testing and Coverage for AngularJS
Knoldus Inc.
Angular JS Unit Testing - Overview
Angular JS Unit Testing - Overview
Thirumal Sakthivel
Intro to Unit Testing in AngularJS
Intro to Unit Testing in AngularJS
Jim Lynch
Unit testing JavaScript: Jasmine & karma intro
Unit testing JavaScript: Jasmine & karma intro
Maurice De Beijer [MVP]
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
JavaScript TDD with Jasmine and Karma
JavaScript TDD with Jasmine and Karma
Christopher Bartling
Advanced Jasmine - Front-End JavaScript Unit Testing
Advanced Jasmine - Front-End JavaScript Unit Testing
Lars Thorup
Jasmine BDD for Javascript
Jasmine BDD for Javascript
Luis Alfredo Porras Páez
Angular Unit Testing
Angular Unit Testing
Alessandro Giorgetti
Jquery- One slide completing all JQuery
Jquery- One slide completing all JQuery
Knoldus Inc.
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Painless JavaScript Testing with Jest
Painless JavaScript Testing with Jest
Michał Pierzchała
RSpec and Rails
RSpec and Rails
Alan Hecht
Angular Unit Testing
Angular Unit Testing
Avi Engelshtein
Testing Ansible
Testing Ansible
Anth Courtney
Intro to JavaScript
Intro to JavaScript
Yakov Fain
Writing Custom Puppet Types and Providers to Manage Web-Based Applications
Writing Custom Puppet Types and Providers to Manage Web-Based Applications
Tim Cinel
Cpsc 473 01 lightning talk
Cpsc 473 01 lightning talk
Ketul Shah
Decapitating Selenium with JavaScript
Decapitating Selenium with JavaScript
Alan Parkinson
Más contenido relacionado
La actualidad más candente
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
Christopher Bartling
Angular testing
Angular testing
Raissa Ferreira
Test-Driven Development of AngularJS Applications
Test-Driven Development of AngularJS Applications
FITC
Unit Testing and Coverage for AngularJS
Unit Testing and Coverage for AngularJS
Knoldus Inc.
Angular JS Unit Testing - Overview
Angular JS Unit Testing - Overview
Thirumal Sakthivel
Intro to Unit Testing in AngularJS
Intro to Unit Testing in AngularJS
Jim Lynch
Unit testing JavaScript: Jasmine & karma intro
Unit testing JavaScript: Jasmine & karma intro
Maurice De Beijer [MVP]
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
JavaScript TDD with Jasmine and Karma
JavaScript TDD with Jasmine and Karma
Christopher Bartling
Advanced Jasmine - Front-End JavaScript Unit Testing
Advanced Jasmine - Front-End JavaScript Unit Testing
Lars Thorup
Jasmine BDD for Javascript
Jasmine BDD for Javascript
Luis Alfredo Porras Páez
Angular Unit Testing
Angular Unit Testing
Alessandro Giorgetti
Jquery- One slide completing all JQuery
Jquery- One slide completing all JQuery
Knoldus Inc.
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Painless JavaScript Testing with Jest
Painless JavaScript Testing with Jest
Michał Pierzchała
RSpec and Rails
RSpec and Rails
Alan Hecht
Angular Unit Testing
Angular Unit Testing
Avi Engelshtein
Testing Ansible
Testing Ansible
Anth Courtney
Intro to JavaScript
Intro to JavaScript
Yakov Fain
Writing Custom Puppet Types and Providers to Manage Web-Based Applications
Writing Custom Puppet Types and Providers to Manage Web-Based Applications
Tim Cinel
La actualidad más candente
(20)
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
Angular testing
Angular testing
Test-Driven Development of AngularJS Applications
Test-Driven Development of AngularJS Applications
Unit Testing and Coverage for AngularJS
Unit Testing and Coverage for AngularJS
Angular JS Unit Testing - Overview
Angular JS Unit Testing - Overview
Intro to Unit Testing in AngularJS
Intro to Unit Testing in AngularJS
Unit testing JavaScript: Jasmine & karma intro
Unit testing JavaScript: Jasmine & karma intro
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
JavaScript TDD with Jasmine and Karma
JavaScript TDD with Jasmine and Karma
Advanced Jasmine - Front-End JavaScript Unit Testing
Advanced Jasmine - Front-End JavaScript Unit Testing
Jasmine BDD for Javascript
Jasmine BDD for Javascript
Angular Unit Testing
Angular Unit Testing
Jquery- One slide completing all JQuery
Jquery- One slide completing all JQuery
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Painless JavaScript Testing with Jest
Painless JavaScript Testing with Jest
RSpec and Rails
RSpec and Rails
Angular Unit Testing
Angular Unit Testing
Testing Ansible
Testing Ansible
Intro to JavaScript
Intro to JavaScript
Writing Custom Puppet Types and Providers to Manage Web-Based Applications
Writing Custom Puppet Types and Providers to Manage Web-Based Applications
Similar a Karma JS Test Runner Overview
Cpsc 473 01 lightning talk
Cpsc 473 01 lightning talk
Ketul Shah
Decapitating Selenium with JavaScript
Decapitating Selenium with JavaScript
Alan Parkinson
Sauce Labs Beta Program Overview
Sauce Labs Beta Program Overview
Al Sargent
Protractor for angularJS
Protractor for angularJS
Krishna Kumar
RichFaces - Testing on Mobile Devices
RichFaces - Testing on Mobile Devices
Pavol Pitoňák
Intro to java
Intro to java
chrisramey
Mobile Development integration tests
Mobile Development integration tests
Kenneth Poon
Configure jasmine and karma for code coverage
Configure jasmine and karma for code coverage
Deepak More
Capybara and cucumber with DSL using ruby
Capybara and cucumber with DSL using ruby
Deepak Chandella
Deploying JRuby Web Applications
Deploying JRuby Web Applications
Joe Kutner
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
Andreas Granig
JRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell You
elliando dias
Socket applications
Socket applications
João Moura
A rough guide to JavaScript Performance
A rough guide to JavaScript Performance
allmarkedup
Building a platform with Django, Docker and Salt | Djangocon lightning talk
Building a platform with Django, Docker and Salt | Djangocon lightning talk
dotCloud
Building a Platform with Django, Docker and Salt
Building a Platform with Django, Docker and Salt
Docker, Inc.
Testing Your APIs: Postman, Newman, and Beyond
Testing Your APIs: Postman, Newman, and Beyond
Postman
Belvedere
Belvedere
Colin Panisset
Faster Data Integration Pipeline Execution using Spark-Jobserver
Faster Data Integration Pipeline Execution using Spark-Jobserver
Databricks
ATDD with Behat and Selenium (LDNSE6)
ATDD with Behat and Selenium (LDNSE6)
Shashikant Jagtap
Similar a Karma JS Test Runner Overview
(20)
Cpsc 473 01 lightning talk
Cpsc 473 01 lightning talk
Decapitating Selenium with JavaScript
Decapitating Selenium with JavaScript
Sauce Labs Beta Program Overview
Sauce Labs Beta Program Overview
Protractor for angularJS
Protractor for angularJS
RichFaces - Testing on Mobile Devices
RichFaces - Testing on Mobile Devices
Intro to java
Intro to java
Mobile Development integration tests
Mobile Development integration tests
Configure jasmine and karma for code coverage
Configure jasmine and karma for code coverage
Capybara and cucumber with DSL using ruby
Capybara and cucumber with DSL using ruby
Deploying JRuby Web Applications
Deploying JRuby Web Applications
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
JRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell You
Socket applications
Socket applications
A rough guide to JavaScript Performance
A rough guide to JavaScript Performance
Building a platform with Django, Docker and Salt | Djangocon lightning talk
Building a platform with Django, Docker and Salt | Djangocon lightning talk
Building a Platform with Django, Docker and Salt
Building a Platform with Django, Docker and Salt
Testing Your APIs: Postman, Newman, and Beyond
Testing Your APIs: Postman, Newman, and Beyond
Belvedere
Belvedere
Faster Data Integration Pipeline Execution using Spark-Jobserver
Faster Data Integration Pipeline Execution using Spark-Jobserver
ATDD with Behat and Selenium (LDNSE6)
ATDD with Behat and Selenium (LDNSE6)
Más de Sebastiano Armeli
Managing a software engineering team
Managing a software engineering team
Sebastiano Armeli
Enforcing coding standards in a JS project
Enforcing coding standards in a JS project
Sebastiano Armeli
Enforcing coding standards
Enforcing coding standards
Sebastiano Armeli
ES6: The future is now
ES6: The future is now
Sebastiano Armeli
EcmaScript 6 - The future is here
EcmaScript 6 - The future is here
Sebastiano Armeli
Dependency management & Package management in JavaScript
Dependency management & Package management in JavaScript
Sebastiano Armeli
RequireJS
RequireJS
Sebastiano Armeli
Lazy load Everything!
Lazy load Everything!
Sebastiano Armeli
MVC on the server and on the client
MVC on the server and on the client
Sebastiano Armeli
Backbone.js in a real-life application
Backbone.js in a real-life application
Sebastiano Armeli
Getting started with Selenium 2
Getting started with Selenium 2
Sebastiano Armeli
Web Storage
Web Storage
Sebastiano Armeli
Más de Sebastiano Armeli
(12)
Managing a software engineering team
Managing a software engineering team
Enforcing coding standards in a JS project
Enforcing coding standards in a JS project
Enforcing coding standards
Enforcing coding standards
ES6: The future is now
ES6: The future is now
EcmaScript 6 - The future is here
EcmaScript 6 - The future is here
Dependency management & Package management in JavaScript
Dependency management & Package management in JavaScript
RequireJS
RequireJS
Lazy load Everything!
Lazy load Everything!
MVC on the server and on the client
MVC on the server and on the client
Backbone.js in a real-life application
Backbone.js in a real-life application
Getting started with Selenium 2
Getting started with Selenium 2
Web Storage
Web Storage
Último
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
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
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Khem
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 Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
Último
(20)
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
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...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Slack Application Development 101 Slides
Slack Application Development 101 Slides
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Karma JS Test Runner Overview
1.
Karma JS Test Runner Sebastiano
Armeli @sebarmeli14/8/2013 - MelbJS
2.
Karma JS Test Runner Sebastiano
Armeli @sebarmeli
3.
Karma JS Test Runner Sebastiano
Armeli @sebarmeli
4.
Test Framework How you
write your tests
5.
Test Environment Where you
execute your tests
6.
Test Runner How you
run your test
7.
What do we
need from a Test Runner?
8.
it (‘should be
fast’)
9.
it (‘should use
real browsers’)
10.
it (‘should be
reliable’)
11.
it (‘should be
reliable’)
12.
Karma
13.
Client socket.io Client Client socket.io socket.io watcher reporter manager web server preprocessor Server
14.
Client socket.io Client Client socket.io socket.io watcher reporter manager web server http http http preprocessor Server
15.
Domain Specific Language
(DSL) for defining tests npm install -g karma // Ready to use
16.
Domain Specific Language
(DSL) for defining tests npm install -g karma karma init // Create config file
17.
Domain Specific Language
(DSL) for defining tests npm install -g karma karma init karma start // Karma starts listening
18.
Domain Specific Language
(DSL) for defining tests npm install -g karma karma init karma start karma run // Karma runs the tests
19.
module.exports = function(config)
{ config.set({ basePath: './../..', frameworks: ['jasmine', ‘requirejs’], files: [ ‘spec/javascripts/test-main.js’, {pattern: 'spec/javascripts/fixtures/**/*.html', watched: false}, {pattern: 'app/assets/javascripts/**/*.js'}, {pattern: 'spec/javascripts/**/*.js'} ], port: 9876, //default browsers: ['Chrome’, ‘ChromeCanary’], singleRun: false, autoWatch: true }); }
20.
Plugins Browser Launchers Test Framework Reporters Preprocessors
21.
karma-!refox-launcher karma-safari-launcher karma-opera-launcher karma-ie-launcher
22.
Plugins Browser Launchers Test Framework Reporters Preprocessors
23.
karma-jasmine karma-mocha karma-qunit karma-requirejs
24.
Plugins Browser Launchers Test Framework Reporters Preprocessors
25.
karma-junit-reporter karma-coverage reporters: [‘junit’], junitReporter :
{ outputFile: 'test-reports.xml', suite: 'My Suite' } reporters: [‘coverage’], coverageReporter: { type : 'html', dir : 'coverage/' }
26.
Plugins Browser Launchers Test Framework Reporters Preprocessors
27.
karma-coverage preprocessors: { './app/assets/javascripts/**/*.js': 'coverage' } preprocessors:
{ '**/*.handlebars': 'ember' } karma-ember-preprocessor
28.
Running just one spec?
29.
Running just one spec? iit(“should
do something”, function(){}); ddescribe(“component”, function(){});
30.
Debug http://localhost:9876/debug.html
31.
Grunt-Karma karma: { ci: { configFile:
'karma.conf.js', singleRun: true, browsers: ['PhantomJS'] } }
32.
Running on CI?
33.
Running on CI? karma
start --singleRun=true --browsers PhantomJS --reporters junit
34.
Karma!
Descargar ahora