|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/unit-testing-angularjs/
课程评论:没有评论
**课程名称:** Unit Testing AngularJS: Build Bugfree Apps That Always Work! **课程概述:** 本课程(在Udemy上广受欢迎,拥有超过2400名学生和250多条好评)将教授如何对AngularJS应用程序进行单元测试,以构建稳定且不易出错的应用。课程旨在帮助开发者和质量保证工程师掌握AngularJS应用测试的关键技能,从而减少调试和修复bug的时间,提升开发效率。 **课程内容亮点:** * **测试基础:** 讲解测试概念、常用工具以及进行单元测试的重要性。 * **代码覆盖率:** 学习使用Istanbul检测AngularJS应用的代码覆盖率,并分析结果以识别测试和代码中的薄弱环节。 * **工具设置:** 从零开始搭建Karma和Jasmine测试环境。 * **测试技巧:** * 学会使用Spies(间谍)跟踪函数调用和事件。 * 掌握如何测试自定义的Controllers(控制器)、Filters(过滤器)和服务。 * 学习使用$provide和Spies来mock(模拟)依赖关系。 * 运用Jasmine的`beforeEach()`和`afterEach()`函数保持代码的DRY(Don't Repeat Yourself,不要重复自己)。 * 学会测试自定义Directives(指令)的JavaScript代码和HTML模板。 * 演示如何测试后端AJAX调用、超时和Promises。 * **调试能力:** 掌握调试Karma测试以快速解决问题。 **潜在收益:** 通过本课程的学习,学员将能够自信地在自己的AngularJS应用中实施单元测试,从而显著减少因bug引起的挫败感和时间浪费,将精力更多地投入到创新的开发工作中。本课程的测试技能适用于所有AngularJS开发环境。 **建议:** 对于正在考虑参加本课程的开发者,可以先观看免费预览视频,了解如何使用Karma和Jasmine来打造坚固可靠的代码。
With over 2400 students and 250+ positive reviews this course is Udemy's most popular course covering Unit Testing for AngularJS! Read on to learn why testing your Angular code can help you build stronger apps that always work when you need them to. When I first started using Angular for our projects, I fell in love with just how easy it was to create apps which looked and worked great. But as the apps we developed became more complex, and the number of people working on the same codebase grew, it became more and more difficult to keep track of all the changes happening in the code and what it's actually meant to be doing, which lead to a lot of bugs and headaches. Re-writing or fixing broken code is not only frustratingly boring, it's also a massive waste of time and money. So I'd like to help you out, by showing you how learning about testing AngularJS apps will save you from falling into the same situation. Hi, I'm Matt and in this course I'll walk you through how to Unit Test AngularJS code so that your app will never again break unexpectedly. After completing this course you'll be able to implement unit tests in your own Angular app, so that you can spend less time on fixing bugs and just focus on the fun parts of development! Whether you're a developer or a quality insurance engineer, you'll learn skills in this course which apply to any AngularJS environment. You'll learn about: Testing concepts, tools and why you should testImplementing code coverage in Angular using Istanbul and analysing the results to identify weak points in our tests and in our codeHow to setup Karma and Jasmine from scratchTracking function calls and events using spiesHow to test custom controllers, filters and servicesHow to mock dependencies using $provide and spiesKeeping code DRY using Jasmine's beforeEach() and afteEach() functionsTesting custom directives' JS code and the HTML templateHow to test for backend AJAX calls, timeouts and promisesDebugging Karma to easily solve any problems with your unit tests If you're not convinced about enrolling in the Unit Testing AngularJS course and learning about using Karma and Jasmine testing in Angular, take a look at the free preview videos and let me show you how to make your code rock solid so that it stands the test of time!