Unit testing your Javascript with jasmine

  • Course provided by Udemy
  • Study type: Online
  • Starts: Anytime
  • Price: See latest price on Udemy
Udemy

Course Description

Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests.


If you want to stand out as a JavaScript developer, you need to learn how to unit test your code. Jasmine is a great way to do so.


By the end of watching this course, you'll be able to:

  • Understand what unit testing is and why it is important in today's market.

  • Set up jasmine from scratch.

  • Write clean and concise suites, specs, and specifications.

  • Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project.

  • Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing.

  • Unit test asynchronous code.

  • Setup test reports and continuous integration from version control to automate your test runs.

  • Apply best practices when structuring your tests.


With this course, you'll get downloadable source code, slides, and section notes.


PREREQUISITES

This is a beginner and intermediate course.

No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project).

You don't need previous experience with a testing framework at all. We've got you covered!

---

Promo video music license:

Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library

Who this course is for:

  • Beginner and intermediate front-end developers new to unit testing.
  • Developers who want to improve theirs skills and take their careers to the next levels.
  • Front-end developers who want to learn how to unit test their Javascript.
  • Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine.
  • Developers with knowledge on other javascript unit testing frameworks but new to jasmine.

Instructors

Principal Software Engineer
  • 4.6 Instructor Rating
  • 551 Reviews
  • 3,888 Students
  • 2 Courses

Hi! I am Juan Lizarazo, your Udemy Instructor!

I've been programming since I was ten years old, and I have been teaching for over a decade.

I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications.

I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US.

I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write.

Software Developer
  • 4.5 Instructor Rating
  • 540 Reviews
  • 3,818 Students
  • 1 Course

I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley).

After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need.

Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry.

Expected Outcomes

  1. Write clean suites, specs and expectations. Isolate dependencies on units through test doubles (spies). Automate test runs through continuous integration from version control using a headless browser and a test runner. Set up jasmine as their unit testing framework from scratch. Configure setup and teardown for suites. Understand how matchers work in Jasmine. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  2. Isolate dependencies on units through test doubles (spies). Automate test runs through continuous integration from version control using a headless browser and a test runner. Set up jasmine as their unit testing framework from scratch. Configure setup and teardown for suites. Understand how matchers work in Jasmine. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  3. Automate test runs through continuous integration from version control using a headless browser and a test runner. Set up jasmine as their unit testing framework from scratch. Configure setup and teardown for suites. Understand how matchers work in Jasmine. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  4. Set up jasmine as their unit testing framework from scratch. Configure setup and teardown for suites. Understand how matchers work in Jasmine. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  5. Configure setup and teardown for suites. Understand how matchers work in Jasmine. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  6. Understand how matchers work in Jasmine. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  7. Write custom matchers and include them in your project. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'677788991969e688',m:'aaad75f0fb9c10b6ffbc8c19cf233ddb17b8dfcf-1627741921-1800-AZlEj8wyCEvjdblK3heTjUt+uZWrqDHdAY1FGVgTz4FezOLCy7hH3YzxmJ3DXFJy92VPXfdfY/KoPScHuLCXmRrpSuRLZOA+g8lPBwqnnek2siBjVkWnGQOfHMPf01cMkq/k86gI44Mc86C+ymPFDx49xUhe6dyxm6DlucsUiEtLYqL75Du9kVA50johqes3Tg==',s:[0x7ddce900c2,0xf5c04f0ec0],}})();
  8. Consume third party matchers. Test asynchronous code. Run unit tests both from a web browser and from a terminal through a test runner. Generate code coverage reports. Improve dependency management through a package manager. Show more Show less Curated for the Udemy Business collection Course content 8 sections • 86 lectures • 5h 49m total length Expand all sections Course Intro 7 lectures • 26min Course overview Preview 05:57 Why unit testing? why jasmine? Preview 07:03 Important javascript notes! Preview 02:13 Download exercise files 00:37 Creating your first test 08:04 Section summary 02:22 Section notes 00:02 Jasmine functions 13 lectures • 1hr 16min Section intro 01:01 Course project 00:52 Let's build it! 06:40 Programing the UI 13:23 Improving errors 03:54 Styling the UI (optional lecture) 12:30 Setting up jasmine 07:12 Suites 06:29 Specs 06:01 Expectations 12:58 Disabled specs and disabled suites 04:48 Section summary 00:37 Section notes 00:02 Matchers 19 lectures • 1hr Section intro 00:45 What is a matcher 04:43 toBe 03:45 toEqual 06:03 toBeTruthy, toBeFalsy 06:11 Negating matchers 02:13 toBeDefined, toBeUndefined 05:00 toBeNull 02:00 toContain 02:17 toBeNaN 03:37 toThrow, toThrowError 05:28 toMatch 03:13 Other matchers 00:56 Match anything 01:59 Custom matchers 07:21 Update on third party matchers! Read before the next lecture. 00:26 Third party matchers 03:34 Section summary 00:51 Section notes 00:02 Organizing your specs 9 lectures • 35min Section intro 01:45 Recommendations to organize our specs 02:54 Nesting suites 06:35 Setup and teardown 04:26 beforeEach, afterEach 04:44 beforeAll, afterAll 09:45 Jasmine and the [this] keyword 04:05 Section summary 00:54 Section notes 00:02 Spying on your code (stubs / test doubles) 16 lectures • 1hr 14min Section intro 01:08 Jasmine spies 05:12 Spying on functions 04:08 toHaveBeenCalled 04:50 toHaveBeenCalledWith 03:11 toHaveBeenCalledTimes 02:19 Spying on prototypes 12:29 callThrough 06:40 callFake 02:20 returnValue 02:46 returnValues 03:46 Spy and throwError 02:58 Using getters 07:44 spyOnProperty 10:18 Section summary 00:48 Section notes 03:36 Testing asynchronous code 8 lectures • 22min Section intro 01:02 Using promises 05:38 The done callback 10:34 Your turn! (spec exercise) 00:23 showVersion() spec solution 01:29 Async and await with specs 02:18 Section summary 00:51 Section notes 00:02 Test reports and continuous integration (CI) 12 lectures • 54min Section intro 03:24 The package.json 04:21 Installing dependencies 06:12 Karma runner 07:29 Headless browser 03:36 Coverage reports 11:01 Pushing to version control 04:53 Connecting to CI system 01:22 Configuring build 06:00 Build badge 02:36 Section summary 02:50 Section notes 00:02 Extras 2 lectures • 1min What's next! 00:54 Bonus! 00:05 Requirements Basic familiarity with HTML, JavaScript (and basic CSS for an optional lecture) NO knowledge of Jasmine or unit testing is required. Description Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a Document Object Model (DOM), and it has a clean, obvious syntax so that you can easily write tests. If you want to stand out as a JavaScript developer , you need to learn how to unit test your code. Jasmine is a great way to do so. By the end of watching this course, you'll be able to: Understand what unit testing is and why it is important in today's market. Set up jasmine from scratch. Write clean and concise suites, specs, and specifications. Understand and use all of the out-of-the-box jasmine matchers, create your custom ones, and include them in your project. Isolate dependencies through test-doubles, known as spies in Jasmine, for true unit testing. Unit test asynchronous code. Setup test reports and continuous integration from version control to automate your test runs. Apply best practices when structuring your tests. With this course, you'll get downloadable source code, slides, and section notes. PREREQUISITES This is a beginner and intermediate course. No previous unit testing experience is needed, just basic familiarity with JavaScript, HTML, and CSS (just optional when building our course project). You don't need previous experience with a testing framework at all. We've got you covered! --- Promo video music license: Adventures by A Himitsu - Creative Commons — Attribution 3.0 Unported— CC BY 3.0 Music released by Argofox - Music provided by Audio Library Who this course is for: Beginner and intermediate front-end developers new to unit testing. Developers who want to improve theirs skills and take their careers to the next levels. Front-end developers who want to learn how to unit test their Javascript. Front-end developers who are familiar with unit testing with other frameworks but want to learn how to unit test with jasmine. Developers with knowledge on other javascript unit testing frameworks but new to jasmine. Show more Show less Featured review Martynas Vanagas 39 courses 19 reviews Rating: 4.5 out of 5 a year ago The instructor clearly explains the functionality of the Jasmine testing framework, its configuration, matches and usage. Learned really nice and interesting things. Since it's explained in a very simple way, it's easy to understand and learn. Show more Show less Instructors Juan Lizarazo Principal Software Engineer 4.6 Instructor Rating 551 Reviews 3,888 Students 2 Courses Hi! I am Juan Lizarazo, your Udemy Instructor! I've been programming since I was ten years old, and I have been teaching for over a decade. I am a software engineer in Salt Lake City, Utah, focused on web app development, cloud, leadership, team scaling, and distributed applications. I am also a software engineering instructor, teaching computer science topics like data structures and algorithms to students all over the US. I also contribute to open-source, talk at Conferences, answer questions on stack overflow, and sometimes write. Show more Show less Reynaldo Pena Software Developer 4.5 Instructor Rating 540 Reviews 3,818 Students 1 Course I have been a building complex and robust applications with JavaScript, and TypeScript, using different frameworks and libraries, for different companies in Utah (The new raising silicon valley). After been through a boot-camp and classical formation (college), I understand the needs, and the level that the different students from different backgrounds need. Now I want to share my knowledge, and help new students that are looking to boost their career, to succeed as a developer in today's industry. Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if