Op werkdagen voor 23:00 besteld, morgen in huis Gratis verzending vanaf €20

Rails Test Prescriptions

Keeping your application healthy

Specificaties
Paperback, 348 blz. | Engels
Pragmatic Bookshelf | 1e druk, 2010
ISBN13: 9781934356647
Rubricering
Hoofdrubriek : Computer en informatica
Pragmatic Bookshelf 1e druk, 2010 9781934356647
Verwachte levertijd ongeveer 9 werkdagen

Samenvatting

'Rails Test Prescriptions' is a comprehensive guide to testing Rails applications, covering Test-Driven Development from both a theoretical perspective (why to test) and from a practical perspective (how to test effectively).

The book covers the core Rails 2 and Rails 3 testing procedures and tools and introduces popular add-ons, including Cucumber, RSpec, Mocha, Factory Girl, Capybara, and RCov. 'Rails Test Prescriptions' shows you both hoe to use these tools and when they are appropriate.

You'll find practical examples of testing Rails models, controllers, and views, as well as integration tests to cover your entire application. Later in the book you'll explore more advanced topics: see how to test Ajax integrations, work with legacy code, and measure the performance of your application.

This book is an invaluable guide to the latest in Rails testing. If you're a Rails programmer who doesn't test code (or you want to test more effectively), this is the book that will get you started.

Specificaties

ISBN13:9781934356647
Taal:Engels
Bindwijze:paperback
Aantal pagina's:348
Druk:1
Hoofdrubriek:IT-management / ICT

Over Noel Rappin

Noel Rappin has a Ph.D. in computer science from the Georgia Institute of Technology, where his research included methods for teaching Object-Oriented Programming and Design. He has extensive production experience in both Java and Python. Noel also contributed an introductory chapter to the book Squeak: Open Personal Computing and Multimedia (PH).

Andere boeken door Noel Rappin

Inhoudsopgave

Part 1: Getting started with Testing in Rails
1. The goals of automated developer testing
2. The basics of Rails testing
3. Writing tour first tests
4. TDD, Rails style

Part 2: Testing application data
5. Testing models with Rails Unit Tests
6. Creating models test data with fixtures and factories
7. Using Mock objects


Part 3: Testing User-Facing layers
8. Testing controllers with functional tests
9. Testing views
10. Testing JavaScript and Ajax

Part 4: Testing Framework Extensions
11. Write Cleaner tests with Shoulda and Contexts
12. RSpec

Part 5: Testing everything all together
13. Testing workflow with integration tests
14. Write better integration tests with Webrat and Capybara
15. Acceptance testing with Cumcumber

Part 6: Testing your tests
16. Using Rcov to measure test coverage
17. Beyond coverage: What makes good tests?
18. Testing a legacy application
19. Performance testing and performance improvement

A: Sample application setup
B: Bibliography

Index

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Rails Test Prescriptions