laboon / ebook

Software Testing ebook
159 stars 62 forks source link

Advanced Unit Testing reorder #56

Closed sdzivanovich closed 9 years ago

sdzivanovich commented 9 years ago

I think "Unit Test Structure" (and maybe also "Code Coverage" and "Unit Testing as Part...") should precede the sections on doubles/stubs/verification/etc., as you kind of implicitly use the knowledge in the "Unit Test Structure" when structuring the unit test examples in the preceding chapters. The flow would be more "this is how unit tests are generally structured" into specifics, rather than throwing out a bunch of low-level specifics then presenting the more basic concepts of unit test structure afterwards

laboon commented 9 years ago

Hmm, that's a good idea. Let me look through it today and see how I could do that.

laboon commented 9 years ago

I don't know about this. I kind of like how it shows individual elements, and then tips and tricks for how to put them all together.

sdzivanovich commented 9 years ago

I don't feel strongly about it. I'm probably biased because I learned general unit test structure/goals first, then started digging into mocking/verification/etc. afterward

laboon commented 9 years ago

I'm going to close this for now. If students seem to have trouble understanding unit tests, may re-arrange later.