GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 91 forks source link

Section 3.2.1 Page 69 Reference to integration test not found #122

Open MudassarBashir opened 9 years ago

MudassarBashir commented 9 years ago

In the penultimate paragraph of page 69, the book states that "Recall from chapter 1 that you create integration tests...". However, in chapter 1 there is no reference that I could find that talks about integration tests or the command to create them. I went looking for that reference because I badly wanted to know the difference between unit tests and integration tests since on page 69, the only distinction I could find was that we want integration tests when testing against the database. An explanation as to the difference between unit and integration testing and the situations in which why we might want one or the other would be greatly appreciated. Thanks.

pledbrook commented 9 years ago

Thanks for the report. I think the first edition had a reference to creating integration tests, but that was changed for the second edition. Unfortunately this reference in chapter 3 was not updated. I also notice that it refers to chapter 7 for testing, but in fact it's chapter 9.

Regarding the difference between unit tests and integration tests, I take it the sidebar on page 69 didn't help? What about section 9.1.2?

MudassarBashir commented 9 years ago

Actually the sidebar is very helpful thank you. As for section 9.1.2, that's a bit ahead for me but I will take a look indeed. Appreciate your help.