PDA

View Full Version : tracing and coverage for web flow 1.0.x



ravkrr
Mar 25th, 2008, 06:11 AM
Hello people,
before I try to integrate the tracing and coverage in Spring webflow 2.0.
I would like to show you how the tools actually work with webflow1.0. They have been very useful for me on my project. I would like to have some feedback and some help to improve it if possible.

1.) Please download the application at http://jira.springframework.org/secure/ManageAttachments.jspa?id=16938.
Attachment phonebook_coverage.rar

2.) create the folders 'D:\research\coverageLogs' and 'D:\research\tracingLogs' on your system.

3.) build the project using Maven 2

4.) place the war in the webapp folder of your tomcat server and get it
started. You will see the logs in the tracing logs folder.

5.) on your IDE, run the tests and check the logs in the coverageLogs folder.


The tracing listener is configured in the phonebook-webflow-config.xml found in the WEB-INF folder.

I have added comments to the new test that i have included to explain how the coverage is to be used.


Thanks
Kris

kenz23
Mar 25th, 2008, 07:03 AM
Hi, i have tried to use the coverage for web flow 1.0.5 and it proves to be very useful when i run my unit tests, it helps me to follow the path of execution. This way i have been making a better path coverage in my application.

However, i am not sure that the pecentage of coverage is very useful here as it would be for java files. Unless you can integrate it with tools similar to clover or Emma. :cool:

majoh
Mar 25th, 2008, 07:45 AM
Also tried it here.

These reports really help me to get my flow tested fully. Especially with an application like ours where the flow is constantly changing during development, it's very useful to check if we don't overlook something, which used to happen often.

Like previous poster said, an integration with e.g. clover would be very helpful, now it's just reading the output file. My managers like graphs more...
Don't know how much effort this needs though.