Unit testing your Javascript with jasmine

所在平台: Udemy

课程主页: https://www.udemy.com/course/unit-testing-your-javascript-with-jasmine/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程总结:使用 Jasmine 进行 JavaScript 单元测试** 本 Coursera 课程“使用 Jasmine 进行 JavaScript 单元测试”旨在帮助学员掌握 JavaScript 单元测试的关键技能。Jasmine 是一个独立的、行为驱动的开发(BDD)框架,其简洁的语法和无需依赖 DOM 的特性,使其成为学习 JavaScript 单元测试的理想选择。 **课程目标:** * **理解单元测试的重要性:** 了解单元测试在当前 JavaScript 开发市场中的价值。 * **Jasmine 入门:** 从零开始设置 Jasmine 环境。 * **编写有效的测试:** 学习如何创建清晰、简洁的测试套(suites)、测试用例(specs)和断言(specifications)。 * **掌握断言:** 熟练运用 Jasmine 内置的各种匹配器(matchers),并学会创建自定义匹配器。 * **依赖隔离(Test Doubles/Spies):** 理解并运用 Jasmine 的 Spies 来隔离测试依赖,实现真正的单元测试。 * **异步代码测试:** 学习如何有效地测试异步 JavaScript 代码。 * **自动化测试:** 配置测试报告和实现持续集成(CI),将自动化测试与版本控制结合。 * **最佳实践:** 学习测试代码的最佳组织和结构方法。 **课程内容亮点:** * 提供可下载的源代码、幻灯片和章节笔记。 * 课程适合初学者和有一定基础的学习者,无需任何单元测试或测试框架经验。 * 仅需 JavaScript 基础知识,HTML 和 CSS 基础知识有助于项目实践(可选)。 通过本课程,学员将能够自信地为自己的 JavaScript 代码编写单元测试,提升代码质量和开发效率,从而在 JavaScript 开发领域脱颖而出。

课程评论(0条)

课程详情

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.PREREQUISITESThis 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

课程标签

0人关注该课程

主题相关的课程