ورود به حساب

نام کاربری گذرواژه

گذرواژه را فراموش کردید؟ کلیک کنید

حساب کاربری ندارید؟ ساخت حساب

ساخت حساب کاربری

نام نام کاربری ایمیل شماره موبایل گذرواژه

برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید


09117307688
09117179751

در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید

دسترسی نامحدود

برای کاربرانی که ثبت نام کرده اند

ضمانت بازگشت وجه

درصورت عدم همخوانی توضیحات با کتاب

پشتیبانی

از ساعت 7 صبح تا 10 شب

دانلود کتاب Rails 5 Test Prescriptions: Build a Healthy Codebase

دانلود کتاب نسخه آزمایشی Rails 5: یک پایگاه کد سالم بسازید

Rails 5 Test Prescriptions: Build a Healthy Codebase

مشخصات کتاب

Rails 5 Test Prescriptions: Build a Healthy Codebase

دسته بندی: برنامه نويسي
ویرایش: 1 
نویسندگان:   
سری: The Pragmatic Programmers 
ISBN (شابک) : 1680502506, 9781680502503 
ناشر: Pragmatic Bookshelf 
سال نشر: 2018 
تعداد صفحات: 396 
زبان: English 
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 4 مگابایت 

قیمت کتاب (تومان) : 44,000



کلمات کلیدی مربوط به کتاب نسخه آزمایشی Rails 5: یک پایگاه کد سالم بسازید: اشکال زدایی، امنیت، جاوا اسکریپت، روبی، تست واحد، تست یکپارچه سازی، توسعه آزمایش محور، تست، کد قدیمی، ریل



ثبت امتیاز به این کتاب

میانگین امتیاز به این کتاب :
       تعداد امتیاز دهندگان : 12


در صورت تبدیل فایل کتاب Rails 5 Test Prescriptions: Build a Healthy Codebase به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.

توجه داشته باشید کتاب نسخه آزمایشی Rails 5: یک پایگاه کد سالم بسازید نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.


توضیحاتی در مورد کتاب نسخه آزمایشی Rails 5: یک پایگاه کد سالم بسازید

آیا کد ریل شما از نفخ، شکنندگی یا عدم دقت رنج می برد؟ این مشکلات را با استفاده منظم از توسعه آزمایش محور برطرف کنید. شما از Rails 5.1، Minitest 5، و RSpec 3.6 و همچنین کتابخانه های آزمایشی محبوب مانند factory_girl و Cucumber استفاده خواهید کرد. به‌روزرسانی‌ها شامل تست‌های سیستم Rails 5.1 و ادغام Webpack است. کاری را که دکتر دستور داده است انجام دهید تا برنامه های شما احساس بهتری داشته باشند. عوارض جانبی ممکن است شامل کد بهتر، اشکالات کمتر و توسعه دهندگان شادتر باشد. برنامه Ruby on Rails شما بیمار است. ضرب‌الاجل‌ها نزدیک است، اما هر بار که کوچک‌ترین تغییری در کد ایجاد می‌کنید، چیز دیگری خراب می‌شود. هیچ کس به خاطر نمی آورد که آن قطعه کد فریبنده قرار بود چه کاری انجام دهد، و هیچ کس نمی تواند بگوید که واقعا چه کاری انجام می دهد. به علاوه، اشکالاتی دارد. شما به توسعه آزمایش محور نیاز دارید: فرآیندی برای بهبود طراحی، قابلیت نگهداری و دوام طولانی مدت نرم افزار. این کتاب با نمونه‌های کد عملی و بحث در مورد اینکه چرا تست کار می‌کند، با اساسی‌ترین ویژگی‌های ارائه شده به عنوان بخشی از هسته Ruby on Rails شروع می‌شود. هنگامی که این ویژگی ها را در برنامه نویسی خود ادغام کردید، با ابزارهای تست شخص ثالث محبوب مانند RSpec، Jasmine، Cucumber و factory_girl کار کنید. بخش های جزء برنامه Rails، از جمله منطق مدل back-end و منطق نمایش جلویی را آزمایش کنید. با مثال‌های Rails، از تست استفاده کنید تا کد خود را فعال کنید تا به تغییرات آینده بهتر پاسخ دهد. بعلاوه، نحوه مدیریت موقعیت‌های آزمایشی در دنیای واقعی را ببینید. این نسخه جدید به Rails 5.1 و RSpec 3.6 به‌روزرسانی شده است و شامل پوشش کامل ویژگی‌های جدید Rails، از جمله آزمایش‌های سیستم و تنظیم جاوا اسکریپت مبتنی بر Webpack است. آنچه شما نیاز دارید: Ruby 2.4، Rails 5.1


توضیحاتی درمورد کتاب به خارجی

Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with the regular application of test-driven development. You'll use Rails 5.1, Minitest 5, and RSpec 3.6, as well as popular testing libraries such as factory_girl and Cucumber. Updates include Rails 5.1 system tests and Webpack integration. Do what the doctor ordered to make your applications feel all better. Side effects may include better code, fewer bugs, and happier developers. Your Ruby on Rails application is sick. Deadlines are looming, but every time you make the slightest change to the code, something else breaks. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Plus, it has bugs. You need test-driven development: a process for improving the design, maintainability, and long-term viability of software. With both practical code examples and discussion of why testing works, this book starts with the most basic features delivered as part of core Ruby on Rails. Once you've integrated those features into your coding practice, work with popular third-party testing tools such as RSpec, Jasmine, Cucumber, and factory_girl. Test the component parts of a Rails application, including the back-end model logic and the front-end display logic. With Rails examples, use testing to enable your code to respond better to future change. Plus, see how to handle real-world testing situations. This new edition has been updated to Rails 5.1 and RSpec 3.6 and contains full coverage of new Rails features, including system tests and the Webpack-based JavaScript setup. What You Need: Ruby 2.4, Rails 5.1



فهرست مطالب

Cover......Page 1
Table of Contents......Page 7
Acknowledgments......Page 12
What’s in This Book......Page 13
A Word About Tools, Best Practices, and Teaching TDD......Page 14
Changes in This Edition......Page 15
Online Resources......Page 16
1. A Test-Driven Fable......Page 17
Testing First Drives Design......Page 19
What Is TDD Good For?......Page 21
When TDD Needs Some Help......Page 23
What You’ve Done......Page 25
Infrastructure......Page 26
Installing RSpec......Page 27
Where to Start?......Page 29
Running the Test......Page 34
Making the Test Pass......Page 36
The Second Test......Page 39
Back on Task......Page 43
Adding Some Math......Page 45
The First Date......Page 48
Using the Time Data......Page 51
What You’ve Done......Page 55
Let’s Write Some Rails......Page 56
The Days Are Action-Packed......Page 63
Who Controls the Controller?......Page 72
A Test with a View......Page 74
Testing for Failure......Page 78
What You’ve Done......Page 81
The Big One......Page 82
Cost and Value......Page 83
SWIFT: The Five Qualities of Valuable Tests......Page 85
What You’ve Done......Page 92
What Can You Do in a Model Test?......Page 93
Okay, Funny Man, What Makes a Good Set of Model Tests?......Page 94
Refactoring Models......Page 95
A Note on Assertions per Test......Page 101
Testing What Rails Gives You......Page 103
Testing ActiveRecord Finders......Page 105
Testing Shared Modules and ActiveSupport Concerns......Page 108
Writing Your Own RSpec Matchers......Page 110
What You’ve Done......Page 113
6. Adding Data to Tests......Page 114
What’s the Problem?......Page 115
Fixtures......Page 116
Factories......Page 122
Dates and Times......Page 136
What You’ve Done......Page 141
7. Using Test Doubles as Mocks and Stubs......Page 142
Test Doubles Defined......Page 143
Creating Stubs......Page 145
Mock Expectations......Page 150
Using Mocks to Simulate Database Failure......Page 151
Using Mocks to Specify Behavior......Page 154
More Expectation Annotations......Page 157
Mock Tips......Page 160
What You’ve Done......Page 162
8. Integration Testing with Capybara and Cucumber......Page 163
A Field Guide to Integration and System Tests......Page 164
Setting Up Capybara......Page 165
Using Feature Tests to Build a Feature......Page 166
What to Test in an RSpec System Test......Page 172
Outside-in Testing......Page 173
Making the Capybara Test Pass......Page 175
Retrospective......Page 183
Setting Up Cucumber......Page 184
Writing Cucumber Features......Page 185
Writing Cucumber Steps......Page 187
Advanced Cucumber......Page 189
Is Cucumber Worth It?......Page 191
What You’ve Done......Page 192
Integration-Testing JavaScript with Capybara......Page 193
Let’s Talk About Drivers......Page 196
Making the Test Pass......Page 198
Webpack in Developer Mode......Page 201
What You’ve Done......Page 202
10. Unit-Testing JavaScript......Page 203
Setting Up JavaScript Unit Tests......Page 204
Writing a Sample Test......Page 208
TDD in JavaScript......Page 209
Jasmine Matchers......Page 213
Testing Ajax Calls......Page 214
Using testdouble.js......Page 216
Connecting the JavaScript to the Server Code......Page 225
What You’ve Done......Page 227
11. Testing Rails Display Elements......Page 228
Testing Routes......Page 229
Testing Helper Methods......Page 230
Testing Controllers and Requests......Page 233
Simulating Requests......Page 235
What to Expect in a Request Spec......Page 236
Older Rails Controller Tests......Page 238
Testing Mailers......Page 240
Testing Views and View Markup......Page 244
Using Presenters......Page 248
Testing Jobs and Cables......Page 250
What You’ve Done......Page 251
12. Minitest......Page 252
Minitest Basics......Page 253
Running Minitest......Page 256
Minitest Setup......Page 258
Mocha......Page 260
System Tests and Others......Page 264
Minitest Helper Tests......Page 268
Minitest and Routing......Page 270
What You’ve Done......Page 271
User Authentication and Authorization......Page 272
Adding Users and Roles......Page 275
Restricting Access......Page 279
More Access-Control Testing......Page 283
Using Roles......Page 285
Protection Against Form Modification......Page 291
Mass Assignment Testing......Page 293
What You’ve Done......Page 295
External Testing Strategy......Page 296
The Service Integration Test......Page 298
Introducing VCR......Page 300
Client Unit Tests......Page 304
Why an Adapter?......Page 306
Adapter Tests......Page 307
Testing for Error Cases......Page 309
Smoke Tests and VCR Options......Page 310
What You’ve Done......Page 312
General Principles......Page 314
The Humble Print Statement......Page 315
Git Bisect......Page 320
RSpec or Minitest Bisect......Page 321
Pry......Page 322
What You’ve Done......Page 328
Running Smaller Groups of Tests......Page 329
Running Rails in the Background......Page 333
Running Tests Automatically with Guard......Page 337
Writing Faster Tests by Bypassing Rails......Page 341
Recommendations for Faster Tests......Page 352
What You’ve Done......Page 353
What’s a Legacy?......Page 354
Set Expectations......Page 355
Getting Started with Legacy Code......Page 356
Test-Driven Exploration......Page 358
Dependency Removal......Page 361
Find the Seam......Page 365
Don’t Look Back......Page 368
What You’ve Done......Page 369
Bibliography......Page 370
– A –......Page 371
– B –......Page 372
– C –......Page 373
– D –......Page 374
– E –......Page 376
– F –......Page 377
– G –......Page 378
– I –......Page 379
– J –......Page 380
– M –......Page 381
– P –......Page 383
– R –......Page 384
– S –......Page 386
– T –......Page 388
– U –......Page 389
– W –......Page 390
– Y –......Page 391




نظرات کاربران