812 To Learn More How Google Tests Software Whittaker et al 2012 is a rare

812 to learn more how google tests software whittaker

This preview shows page 340 - 342 out of 517 pages.

8.12 To Learn More How Google Tests Software ( Whittaker et al. 2012 ) is a rare glimpse into how Google has scaled up and adapted the techniques described in this chapter to instill a culture of testing that is widely admired by its competitors. The online RSpec documentation gives complete details and additional features used in advanced testing scenarios. The RSpec Book ( Chelimsky et al. 2010 ) is the definitive published reference to RSpec and includes examples of features, mechanisms and best practices that go far beyond this introduction. P. Ammann and J. Offutt. Introduction to Software Testing . Cambridge University Press, 2008. ISBN 0521880386. D. Chelimsky, D. Astels, B. Helmkamp, D. North, Z. Dennis, and A. Hellesøy. The RSpec Book: Behaviour Driven Development with Rspec, Cucumber, and Friends (The Facets of Ruby Series) . Pragmatic Bookshelf, 2010. ISBN 1934356379. M. Feathers. Working Effectively with Legacy Code . Prentice Hall, 2004. ISBN 9780131177055. G. Klein, K. Elphinstone, G. Heiser, J. Andronick, D. Cock, P. Derrin, D. Elkaduwe, K. Engelhardt, R. Kolanski, M. Norrish, T. Sewell, H. Tuch, and S. Winwood. seL4: Formal verification of an OS kernel. Communications of the ACM (CACM) , 53(6):107–115, June 2010. J. A. Whittaker, J. Arbon, and J. Carollo. How Google Tests Software . Addison-Wesley Professional, 2012. ISBN 0321803027. 8.13 Suggested Projects Project 8.1. (Discussion) Describe the role that formal methods can play in the development of complex software and compare their use as validation and verification techniques with testing. Project 8.2. Compare and contrast integration strategies including top-down, bottom-up, and sandwich integration.
Image of page 340
Project 8.3. Complete the happy path of the Cucumber scenario started in Chapter 7 for retrieving movie info from TMDb. To keep the scenario I ndependent of the real TMDb service, you’ll need to download and use the FakeWeb gem to “stub out” calls to the TMDb service. Project 8.4. Write specs and code to test the implicit requirement that an empty collection is returned when a request is made with a valid API key but no results match in TMDb. Project 8.5. In Section 8.3 , we stubbed the method find_in_tmdb both to isolate the testing of the controller from other classes and because the method did not yet exist. How would such stubbing be handled in Java? Project 8.6. Based on the specfile below, to what method(s) must instances of Foo respond in order for the tests to pass? 1 require ’foo’ 2 describe Foo do 3 describe "a new foo" do 4 before :each do ; @foo = Foo.new ; end 5 it "should be a pain in the butt" do 6 @foo.should be_a_pain_in_the_butt 7 end 8 it "should be awesome" do 9 @foo.should be_awesome 10 end 11 it "should not be nil" do 12 @foo.should_not be_nil 13 end 14 it "should not be the empty string" do 15 @foo.should_not == "" 16 end 17 end 18 end Project 8.7. In Chapter 7 , we created a “Find in TMDb” button on the index page of RottenPotatoes that would post to search_tmdb , but we never wrote a spec that verifies that the button routes to the correct action. Write this spec using RSpec’s route_to assertion matcher and add it to the controller spec. (Hint: since this route doesn’t correspond to a basic CRUD action, you won’t be able to use the
Image of page 341
Image of page 342

You've reached the end of your free preview.

Want to read all 517 pages?

  • Spring '19
  • Dr.Marcos

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors