RSpec یک فریمورک برای تست برنامه های Ruby است.

در این آموزش تصویری با تست اپلیکیشن های Ruby با RSpec آشنا می شوید.

این دوره آموزشی محصول موسسه Pluralsight است.

سرفصل های دوره:

  • نحوه نصب و راه اندازی Ruby
  • نحوه تنظیمات برنامه
  • کار با متاداده
  • معرفی اپلیکیشن Hooks
  • معرفی Recap
  • کار با مجموعه Matchers
  • نحوه سفارشی سازی Matchers
  • نحوه سازماندهی برنامه
  • نحوه تعامل با Mocks
  • نحوه طراحی Mocks
  • آشنایی با RSpec Ecosystem
  • نحو به روز رسانی برنامه
  • نحوه قالب بندی داده ها
  • و…

عنوان دوره: Pluralsight Testing Ruby Applications with RSpec
سطح: مقدماتی
مدت زمان: 1 ساعت و 46 دقیقه
نویسنده: Xavier Shay


Pluralsight Testing Ruby Applications with RSpec

Xavier Shay
1h 46m

Learn how to use the popular RSpec suite of libraries (core, expectations, and mocks) to test your Ruby application.
In this course, we will be testing a simple command line card game using RSpec. We'll cover the core three libraries: the first module covers the core syntax and command line runner core, the second the expectation library for expressing rich assertions about your code, and the third covers mocks, a powerful tool for specifying collaborations between objects and getting useful design feedback. The final module places RSpec in the wider Ruby ecosystem, looking at the major RSpec versions and common patterns you'll encounter in the wild. In addition to covering the technical aspects of using RSpec, we'll also cover best practices for using them so you get the most out of your test suite: different types of tests, what kinds of things to test, when different styles are appropriate. This is applied in numerous worked examples.

Course Overview
1m 26s
Course Overview
1m 26s
Getting Started
40m 14s
1m 59s
Install and Setup
2m 21s
Your First Spec
8m 25s
Get Organized
3m 51s
Writing Compact Specifications
9m 31s
Deep Dive: Examples and Example Groups
4m 26s
Acceptance Tests
آ4m 46s
Hooks and Metadata
3m 46s
1m 4s
Helpful Failures with Expectations
22m 43s
Basic Equality Matching
2m 28s
Collection Matchers
3m 46s
Custom Matchers
4m 35s
Deep Dive: How Expectations Work
2m 49s
Organizing Your Specs
3m 53s
Putting It Together
5m 8s
Designing Interactions with Mocks
31m 32s
Designing with Mocks
6m 8s
Using Test Doubles
3m 23s
Listening to Your Mocks
3m 44s
Null Objects
3m 23s
Deep Dive: How Mocks Work
3m 20s
Working with 3rd Party Code
5m 50s
Isolated Specs
4m 11s
1m 30s
Understanding the RSpec Ecosystem
10m 18s
Should vs. Expect
1m 46s
Upgrading Across Major RSpec Versions
2m 6s
Code Coverage
2m 52s
Custom Formatters
1m 2s
Course Conclusion
2m 31s