Today's assignment is StackStripesExtension. My extended stack is here.
All tasks completed.
Difficulties
Nothing was particularly difficult. I ran into the problem that John Hauge brought up, but I had already seen Shaoxuan Zhang's reply, so I just started tomcat from the project directory.
I also had to add $CATALINA_HOME/bin to my PATH so that emma.build.xml could find it.
Coverage
Emma Coverage summary
class: 100% (2/2)
method: 100% (18/18)
block: 97% (142/146)
line: 94% (39.6/42)
When I did Task 4, adding an HTTPUnit test, I noticed that the isEmpty model method wasn't being called anywhere in the controller. That pretty much ruled out 100% method coverage via HTTPUnit, so I settled for ninety-something.
In Task 5, I added tests of isEmpty to the non-HTTPUnit tests at the same time that I added tests for my new doubleIt method, so method coverage did end up at 100%.
Lessons Learned
Being told to shoot for 100% method coverage kills any desire to do black box testing. The tests we did for MyISERN-1.2 were much better, even though Emma reported less coverage.
0 comments:
Post a Comment