|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/testing-ruby-with-rspec/
课程评论:没有评论
课程名称:使用 RSpec 测试 Ruby:完整指南 课程概述: 欢迎参加《使用 RSpec 测试 Ruby:完整指南》课程!本课程全面介绍了 Ruby 编程语言的 RSpec 测试库。RSpec 是有史以来最受欢迎的 Ruby Gem,下载量超过 3 亿次。如果您是这个主题的新手,测试是“编写代码以确认其他代码按预期工作”的实践。测试可以控制回归问题,即导致程序故障的代码变更。通过测试,您可以放心重构现有的代码,因为您知道能够保留代码的原有目的。测试的好处不仅限于代码库本身。 在本课程中,我们将探讨测试驱动开发(TDD)的方法论,即在实现之前先编写测试。测试驱动开发通常会导致更简单和解耦的代码。因此,测试可以提升您的开发能力。测试促使您对程序及其功能进行深入思考,包括类、对象、方法等。 《使用 RSpec 测试 Ruby》课程从 RSpec 的基础知识开始,逐步深入到更复杂的主题,包括: - 安装 - 项目初始化 - 测试驱动开发(TDD) - let 变量 - before 和 after 钩子 - Subjects - Shared Examples - Shared Context - 内置匹配器 - 模拟和双重 (Mocks and Doubles) - 实例双重 (Instance Doubles) - 类双重 (Class Doubles) 作为一名拥有 5 年以上 Ruby 开发经验的软件工程师和顾问,我很高兴向您介绍令人惊叹的 RSpec 库、其优雅的语法以及所有有趣的特性。感谢您查看本课程!
Welcome to Testing Ruby with RSpec: The Complete Guide!This course offers a comprehensive overview of the RSpec testing library for the Ruby programming language. RSpec is the most popular Ruby Gem of all time, with over 300 million downloads to date.If you're new to the topic, testing is the practice of "writing code that confirms that other code works as expected". Tests control for regressions, which are changes to the code that break the program. Tests give you the confidence to refactor existing code because you know that you will honor the original purpose of the code. The benefits of testing extend outside of your codebase. In this course, we'll cover test-driven development (TDD), a methodology in which we write our tests first, before the implementation. Test-driven development often leads to simpler, more decoupled code. Thus, testing can make you a better developer. Tests force you to think critically about the program and its features: the classes, the objects, the methods and more.Testing Ruby with RSpec begins with the RSpec essentials and proceeds to more complex topics including:InstallationProject InitializationTest-Driven Development (TDD)let variablesbefore and after HooksSubjectsShared ExamplesShared ContextBuilt-in MatchersMocks and DoublesInstance DoublesClass DoublesAs a software engineer and consultant who's worked with Ruby for 5+ years, I'm excited to introduce you to the awesome RSpec library, its elegant syntax, and all of its fun quirks.Thanks for checking out the course!