000 03948nam a22004935i 4500
001 978-1-4842-9748-3
003 DE-He213
005 20251030110816.0
007 cr nn 008mamaa
008 231212s2024 xxu| s |||| 0|eng d
020 _a9781484297483
_9978-1-4842-9748-3
024 7 _a10.1007/978-1-4842-9748-3
_2doi
050 4 _aQA76.6-76.66
072 7 _aUM
_2bicssc
072 7 _aCOM051000
_2bisacsh
072 7 _aUM
_2thema
100 1 _aDonald, Greg.
_eauthor.
_4aut
_4http://id.loc.gov/vocabulary/relators/aut
_966168
245 1 0 _aHands-on Test-Driven Development
_h[electronic resource] :
_bUsing Ruby, Ruby on Rails, and RSpec /
_cby Greg Donald.
250 _a1st ed. 2024.
264 1 _aBerkeley, CA :
_bApress :
_bImprint: Apress,
_c2024.
300 _aXIII, 232 p. 19 illus.
_bonline resource.
336 _atext
_btxt
_2rdacontent
337 _acomputer
_bc
_2rdamedia
338 _aonline resource
_bcr
_2rdacarrier
347 _atext file
_bPDF
_2rda
505 0 _aChapter 1: Intro -- Chapter 2: What is Test-Driven Development? -- Chapter 3: Getting started with Ruby -- Chapter 4: Getting started with Ruby on Rails -- Chapter 5: Setting up RSpec and FactoryBot -- Chapter 6: Adding Initial Models -- Chapter 7: Creating Pages -- Chapter 8: Build Homepage Contents -- Chapter 9: Side Bar Contents -- Chapter 10: Page Tags -- Chapter 11: Images -- Chapter 12: User Authentication -- Chapter 13: Administration -- Chapter 14: Odds and Ends -- Chapter 15: Deploy to Production.
520 _aLearn to properly test Ruby and Ruby on Rails applications by first writing failing tests, and then by implementing application code to make the failing tests pass. This book will teach you how to employ test-driven development (TDD) using RSpec while building a blog from start to finish. By the end of the book, you will be ready to deploy their fully tested blog to their own production web server using the latest versions of Ruby 3 and Ruby on Rails 7. The biggest challenge with learning and becoming comfortable with test-driven development is that software engineers often cannot imagine what writing a failing test looks like in practice. They write their implementation code first, and only then think about writing tests around their implementation code. This leads to tests that pass by accident, or tests that do not actually test anything. This book will give you the confidence to write tests in the RSpec domain-specific language. You will see your tests fail "properly" before proceeding with writing any implementation code to get them to pass. This book covers the latest techniques for writing RSpec tests, including "system" specs, and the often overlooked "view" specs, and how to integrate RSpec with other tools like Capybara, headless Chrome, and the new web driver gem. It also covers FactoryBot for mock test data and offers experienced advice on how to avoid creating tests that fail randomly. You will: Build a blog application from start to finish using test driven development Install and explore popular tools used in professional Ruby software engineering Evaluate the benefits of effective testing in RSpec Explore Capistrano for advanced user interface testing.
650 0 _aComputer programming.
650 0 _aInternet programming.
_966169
650 1 4 _aProgramming Techniques.
_965517
650 2 4 _aWeb Development.
_966170
710 2 _aSpringerLink (Online service)
773 0 _tSpringer Nature eBook
776 0 8 _iPrinted edition:
_z9781484297476
776 0 8 _iPrinted edition:
_z9781484297490
776 0 8 _iPrinted edition:
_z9798868806643
856 4 0 _uhttps://doi.org/10.1007/978-1-4842-9748-3
912 _aZDB-2-CWD
912 _aZDB-2-SXPC
999 _c56309
_d56309