AccountServer coverage

1 view
Skip to first unread message

w

unread,
Dec 4, 2011, 1:32:21 AM12/4/11
to CPSC410-2011
I followed the steps for using emma, and then tried it on the example
attached to the Nov 2 lecture. When I run the tests and then check
emma, it is reported that there is 0.0% coverage of
AccountServlet.java. Is that supposed to be the case?

Eric Wohlstadter

unread,
Dec 4, 2011, 1:37:37 AM12/4/11
to cpsc41...@googlegroups.com
No, it will be more than 0%.

Did you Import the coverage.ec file after running the test code? Also, you might find there are two coverage.ec files on your computer. One for the TestClient and one for AccountServlet. 

If Emma is telling you that some of the TestClient code was covered, then it just means you need to import the other coverage.ec file.

Eric
Reply all
Reply to author
Forward
0 new messages