Suche senden
Hochladen
Karma JS Test Runner Overview
•
12 gefällt mir
•
10,939 views
Durch KI verbesserter Titel
S
Sebastiano Armeli
Folgen
Talk given at MelbJS - August 2013
Weniger lesen
Mehr lesen
Technologie
Bildung
Melden
Teilen
Melden
Teilen
1 von 34
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
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
Empfohlen
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
Weitere ähnliche Inhalte
Was ist angesagt?
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
Was ist angesagt?
(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
Ähnlich wie 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
Ähnlich wie 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)
Mehr von 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
Mehr von 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
Kürzlich hochgeladen
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
AndikSusilo4
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
2toLead Limited
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
soniya singh
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
LBM Solutions
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
Kürzlich hochgeladen
(20)
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
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!
Jetzt herunterladen