Cargando…

Rails 4 test prescriptions : build a healthy codebase /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Rappin, Noel, 1971- (Autor)
Otros Autores: Beighley, Lynn (Editor )
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [Frisco, TX] : Pragmatic Programmers, [2014]
Colección:Pragmatic programmers.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)

MARC

LEADER 00000cam a2200000Ii 4500
001 OR_ocn903401630
003 OCoLC
005 20231017213018.0
006 m o d
007 cr unu||||||||
008 150213s2014 txua ob 000 0 eng d
040 |a UMI  |b eng  |e rda  |e pn  |c UMI  |d S4S  |d COO  |d DEBBG  |d OCLCF  |d OCLCQ  |d EBLCP  |d OCLCQ  |d CEF  |d OCLCQ  |d OCLCO  |d UAB  |d INARC  |d OCLCQ  |d OCLCO 
020 |a 1941222196  |q (Trade Paper) 
020 |a 9781941222195  |q (Trade Paper) 
020 |z 9781941222195 
024 3 |a 9781941222195 
029 1 |a DEBBG  |b BV042487428 
029 1 |a DEBSZ  |b 434828262 
029 1 |a GBVCP  |b 88273573X 
035 |a (OCoLC)903401630 
037 |a CL0500000545  |b Safari Books Online 
050 4 |a QA76.64 
082 0 4 |a 006.76 
049 |a UAMI 
100 1 |a Rappin, Noel,  |d 1971-  |e author. 
245 1 0 |a Rails 4 test prescriptions :  |b build a healthy codebase /  |c Noel Rappin ; edited by Lynn Beighley. 
246 3 0 |a Rails four test prescriptions 
264 1 |a [Frisco, TX] :  |b Pragmatic Programmers,  |c [2014] 
264 4 |c ©2014 
300 |a 1 online resource (1 volume) :  |b illustrations. 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
490 1 |a The pragmatic programmers 
500 |a "Version: P1.0 (December 2014)." 
500 |a Place of publication from publisher's Web site. 
504 |a Includes bibliographical references. 
588 0 |a Print version record. 
520 8 |a Annotation  |b Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with a regular dose of test-driven development. Rails 4 Test Prescriptions is a comprehensive guide to how tests can help you design and write better Rails applications. In this completely revised edition, you'll learn why testing works and how to test effectively using Rails 4, Minitest 5, and RSpec 3, as well as popular testing libraries such as factory_girl and Cucumber. 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. Containing 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, you'll learn how to use popular third-party testing tools such as RSpec, Mocha, Cucumber, and factory_girl. You'll test the component parts of a Rails application, including the back-end model logic and the front-end display logic. Using Rails examples, you'll learn how to use testing to enable your code to respond better to future change. Plus, you'll see how to handle real-world testing situations. This completely revised edition contains a new tutorial, as well as new examples throughout the book. Many chapters, including the JavaScript chapter, have undergone major changes to reflect new tools and new practices. And there are brand new chapters on testing for security, and testing external services. What You Need:Ruby 2.1, Rails 4. 
505 0 |a Cover; Table of Contents; Acknowledgments; 1. Introduction; A Test-Driven Fable; Who You Are; Testing First Drives Design; What Is TDD Good For?; When TDD Needs Some Help; Words to Live By; A Word About Tools, Best Practices, and Teaching TDD; Coming Up Next; Changes in the Second Edition; 2. Test-Driven Development Basics; Infrastructure; The Requirements; Installing RSpec; Where to Start?; Running Our Test; Making Our Test Pass; The Second Test; Back on Task; Adding Some Math; Our First Date; Using the Time Data; What Weâ#x80;#x99;ve Done; 3. Test-Driven Rails; And Now Letâ#x80;#x99;s Write Some Rails. 
505 8 |a The Days Are Action-PackedWho Controls the Controller?; A Test with a View; What Have We Done? And Whatâ#x80;#x99;s Next?; 4. What Makes Great Tests; The Big One; The Big Two; The More Detailed Five: SWIFT Tests; Using SWIFT Tests; 5. Testing Models; What Can We Do in a Model Test?; What Should I Test in a Model Test?; Okay, Funny Man, What Makes a Good Set of Model Tests?; Refactoring Models; A Note on Assertions per Test; Testing What Rails Gives You; Testing ActiveRecord Finders; Testing Shared Modules and ActiveSupport Concerns; Write Your Own RSpec Matchers; Modeling Data. 
505 8 |a 6. Adding Data to TestsWhatâ#x80;#x99;s the Problem?; Fixtures; Factories; Dates and Times; Fixtures vs. Factories vs. Test Doubles; 7. Using Test Doubles as Mocks and Stubs; Mock Objects Defined; Creating Stubs; Mock Expectations; Using Mocks to Simulate Rails Save; Using Mocks to Specify Behavior; More Expectation Annotations; Mock Tips; 8. Testing Controllers and Views; Testing Controllers; Simulating Requests in a Controller Test; Evaluating Controller Results; Testing Routes; Testing Helper Methods; Testing Views and View Markup; Presenters; Testing Mailers; Managing Controller and View Tests. 
505 8 |a 9. MinitestGetting Started with Minitest; Minitest Basics; Running Minitest; Minitest and Rails Controllers; Minitest and Views; Minitest and Routing; Minitest Helper Tests; Mocha; Onward; 10. Integration Testing with Capybara and Cucumber; What to Test in an Integration Test; Setting Up Capybara; Outside-in Testing; Using Capybara; Making the Capybara Test Pass; Retrospective; Trying Cucumber; Setting Up Cucumber; Writing Cucumber Features; Writing Cucumber Steps; More-Advanced Cucumber; Is Cucumber Worth It?; Looking Ahead; 11. Testing for Security; User Authentication and Authorization. 
505 8 |a Adding Users and RolesRestricting Access; More Access Control Testing; Using Roles; Protection Against Form Modification; Mass Assignment Testing; Other Security Resources; 12. Testing External Services; External Testing Strategy; Our Service Integration Test; Introducing VCR; Client Unit Tests; Why an Adapter?; Adapter Tests; Testing for Error Cases; Smoke Tests and VCR Options; The World Is a Service; 13. Testing JavaScript; Unit-Testing JavaScript; Our Real Jasmine Project; Testing Ajax Calls; Integration Testing with Capybara and JavaScript; JavaScript Fiddle. 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
630 0 0 |a Ruby on rails (Electronic resource) 
630 0 7 |a Ruby on rails (Electronic resource)  |2 fast 
650 0 |a Computer software  |x Testing. 
650 0 |a Computer software  |x Development. 
650 7 |a Computer software  |x Development  |2 fast 
650 7 |a Computer software  |x Testing  |2 fast 
700 1 |a Beighley, Lynn,  |e editor. 
776 0 8 |i Print version:  |a Rappin, Noel, 1971-  |t Rails 4 test prescriptions.  |d Dallas : The Pragmatic Bookshelf, 2014  |z 9781941222195  |w (OCoLC)899708519 
830 0 |a Pragmatic programmers. 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781680500493/?ar  |z Texto completo (Requiere registro previo con correo institucional) 
938 |a Internet Archive  |b INAR  |n rails4testprescr0000rapp 
994 |a 92  |b IZTAP