Emma Working

5 views
Skip to first unread message

Terence Statt

unread,
Jun 2, 2008, 12:44:52 PM6/2/08
to 308clas...@googlegroups.com
Hey
I got Emma to run with Junit.  Here is the Fixstyle.jar that has Emma implemented in it.  We just need someone right now to run all the unit tests at once so all our coverage is recorded.  Right now, my one test for Undo only passes 11% becasue it sees the whole default package as one class.  Thus, it all the unit tests are run, the number should skyrocket.  Attached is the Fixstyle.jar and my coverage report off my one unit test.  Never mind, i looked at the wrong data...it has seperate files for all our classes in a different folder so I guess everyone just print that out and turn it in.  Here is also that file.  My numbers are a little low because of the error catching that I can't generate but are forced to include. I might be able to  get that a little higher with the basis path test included in it, and I'll send that one out a little later.

--
Terence Statt
510-557-5318
Csk...@gmail.com
Fixstyle.jar
index.html
5.html

Terence Statt

unread,
Jun 2, 2008, 12:51:54 PM6/2/08
to 308clas...@googlegroups.com
Oh:
I also forgot to include the command that you need to run.
java  -cp .;TestTools\emma.jar TestTools.SwingRobot CircleConverter CircleTest.rsf
Basically, however the directory is set up, emma.jar needs to be the last thing in the class path.  Then just run your Junit tests like normal.  In fact, if Brian could run all of ours, just run them all in succession and all the data will be merged.
Then to get the print out
java -cp TestTools\emma.jar emma report -r html -in coverage.em -in coverage.ec -sp .
Check the file name in the directory to see if they actually are coverage.em and coverage.ec.
This will make a coverage folder where the index.html is all our classes seen as one class and then there is another colder in that one that has all our class separated so we can see how much of each method is being used.
--
Terence

Brian Mark

unread,
Jun 2, 2008, 1:00:13 PM6/2/08
to 308clas...@googlegroups.com
Whenever/If someone gets all the unit tests run with Emma, can you either post the results on the wiki (preferably) or email them to me so I can use it for the last item on the Release Criteria?
 
-Brian

Terence Statt <csk...@gmail.com> wrote:

Terence Statt

unread,
Jun 2, 2008, 3:28:59 PM6/2/08
to 308clas...@googlegroups.com
Brian, this is going to be easy.  Take the jar file for fixstlye that I gave you and replace it with our in the extension folder.  Re-run our system tests with costello.
Search for the coverage.em file.  It is in the main BlueJ file.  Run this command with the provided coverage.em

java -cp TestTools\emma.jar emma report -r html -in coverage.em -in coverage.ec -sp .
Check the file name in the directory to see if they actually are coverage.em and coverage.ec.  Also make sure the path to emma is correct.  Wala, coverage data.
--
Terence Statt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "308class TWAIN" group.
To post to this group, send email to 308clas...@googlegroups.com
To unsubscribe from this group, send email to 308class-twai...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/308class-twain?hl=en
-~----------~----~----~----~------~----~------~--~--
coverage.em
Reply all
Reply to author
Forward
0 new messages