پیشنهاد فرادرس

آموزش SinonJS - کتابخانه محبوب جاوااسکریپت

دسته بندی ها: آموزش جاوااسکریپت (Javascript) ، تست نرم افزار ، آموزش تست واحد (Unit Testing) ، آموزش طراحی وب ، آموزش های پلورال سایت (Pluralsight)

انجام تست واحد می تواند سخت باشد، به ویژه هنگامی که شما در برابر سیستم های زنده تست می کنید. داده پایگاه داده ها می توانند تغییر کنند، API ها می توانند از بی بروند و دسترسی به سیستم های فایل ها می تواند کند شود. استفاده از test doubles در تست های واحد می تواند به کاهش بسیاری از تلاش ها و مشکلات شما پایان دهد. در این دوره با مبانی SinonJS، تست واحد با کابخانه SinonJS، هر test doubles که SinonJS پیشنهاد می دهد، سینتکس، مشکلات تست مانند  داده های XHR در مرورگر، کارکرد اکوسیستم سینون و غیره آشنا می شوید.

سرفصل:

  • معرفی دوره
  • تست در Globomantics
  • نصب پیش نیاز ها
  • توابع
  • Stub چیست؟
  • Spies درمقابل Stubs
  • Mock چیست؟
  • استفاده از Mocks
  • Matchers چیست؟
  • Matchers سفارشی
  • Sandbox چیست؟
  • توابع Sandbox
  • و غیره
به این نوشته امتیاز دهید 1 2 3 4 5 بدون امتیاز
SinonJS: A Very Popular JavaScript Library Publisher:Pluralsight Author:Nate Taylor Duration:2h 22m Level:Intermediate

Join us in this course to learn SInonJS and the features associated with one of the most popular JavaScript libraries. You'll also learn the why behind it all.
Unit testing can be hard, particularly when you're testing against live systems. Data from databases can change, APIs can be down, and accessing file systems can be slow. Using test doubles in your unit tests can help alleviate a lot of the struggles and issues you might experience. In this course, SinonJS Fundamentals, you'll learn how the SinonJS library can help make unit testing easier and more repeatable. First, you'll explore each of the test doubles that Sinon offers. Not only will you learn the syntax, but with the hands-on demos, you'll see how and when to use each test double. Next, you'll delve into other utilities that Sinon offers that simplify checking that the right data was returned. Then, you'll discover how Sinon can help you even with the hard problems of testing, such as faking out dates or XHR data in the browser. Finally, you'll learn how the Sinon ecosystem works to make it easier for you to stay on top of all of your test doubles. By the end of the course, you'll be able to incorporate Sinon into your projects to ensure quick, repeatable test results.
Course Overview
Course Overview
1m
The State of Testing at Globomantics
Welcome to Globomantics
2m
Installing Prerequisites
1m
Getting the Sample Project
2m
A Quick Tour
2m
Path Ahead
1m
Spying on Functions
Spying on Functions
0m
What Are Spies?
4m
Verifying a Spy Was Called
2m
Demo: Verify a Spy Was Called
4m
Testing Pro-tip
1m
Verify Multiple Calls
2m
Examining Parameters Passed to a Function
7m
Demo: Verify Right Book Was Created
1m
Verify Exceptions
1m
Spies as Building Blocks
1m
Swapping a Stub for a Function
Swapping a Stub for a Function
0m
What Is a Stub?
3m
Returning Fake Values
3m
Handling Promises
3m
Demo: Stubbing Resolved Values
5m
Cleaning up After a Stub
2m
Additional Return Options
2m
Spies vs. Stubs
1m
Verifying Behavior with Mocks
Verifying Behavior with a Mock
0m
What Is a Mock?
2m
Using Mocks
3m
Checking Mocks
3m
Demo: Verify Payment
3m
Mocks vs. Spies vs. Stubs
2m
Controlling How Parameters Are Matched
Controlling How Parameters Are Matched
0m
Verifying Creation Date
2m
What Are Matchers?
1m
What Can Be Matched?
3m
Completing Date Verification
2m
Array Matchers
2m
Custom Matchers
3m
Faking out XHR and Timer Calls
Faking out XHR and Timer Calls
0m
Making External API Calls
2m
Running Tests in the Browser
4m
Making a Fake Request
2m
Demo: Fake XHR
3m
Faking a Server
4m
Faking a Date
2m
Demo: Cleaning up Date Verification
3m
Coming Up
0m
Easier Set up and Clean up with Sandboxes
Easier Set Up
0m
What Is Sandbox?
3m
Demo: Using Sandbox
4m
Other Sandbox Functions
2m
What’s Next?
What's Next?
0m
Big Picture
3m
Additional Libraries
4m
Final Thoughts
1m

پیشنهاد فرادرس

لینک های دانلود حجم فایل: 194.0MB همراه با زیرنویس انگلیسی Pluralsight SinonJS A Very Popular JavaScript Library_git.ir.rar