Automated Regression Testing suite
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
My final year project is to automate the testing process which is done for an application. I did a research and found that combination of JUnit, Clover and ANT shall be used to make the automated testing process going. I use Eclipse as my IDE. Clover is a proprietary software and I want you to suggest a code coverage analysis tool that is an an open source which can be used with both JUnit and Ant on Eclipse IDE. The technology should also be simple to use even by a novice (I am a novice to all these technologies).
PS: The application is built on Struts framework
Thanks in advance

The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I like emma for code coverage. It is open source and free.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I went through some of the FAQ's about Emma. It is stated that
"Independently of any user-provided instrumentation filters, EMMA always excludes the following from coverage:
1. Methods that have no executable Java bytecode: abstract methods, native methods;
2. Java interface classes (even though they may have executable static initializers).
Additionally, the following types of methods are excluded by default, but can be included by setting the appropriate instrumentation property:
1. Methods marked as Synthetic by the compiler: these are usually "helper" methods needed by the compiler to implement certain Java Language constructs like inner class access, etc. These methods have no user-provided code.
2. Bridge methods created by Java 1.5 compilers to graft new language features on the existing class format."
Is that a disadvantage in using Emma?
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The default behavior gives you less "noise" in the reports. If you really want it, you can turn it on though. So I wouldn't see it as a disadvantage since it is under your control.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
This is a wonderful article to start with. I did created the directory structure and placed files like in the example
I put two simple java files and its respective JUnit test cases along with the same files
I created a build.xml file with just copy pasting the targets from the above link. I copied just the following:
I didn't added anything to the build file. When I run the build file I get the following message:
I placed my project in C:\ . What is the thing that went wrong. Since, I am starting with these only now, I cannot figure it out. Where should I place the test codes of JUnit, I mean how the emma task will identify JUnit test code from the actual code (I placed both together in the src directory)?
I expect a cookbook like assistance
. Its really embarrassing to ask again and again the same thing.
Kindly help me on this problem.
PS: I am not using any IDEs now
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I was able to correct that mistake and my build was successful. But as stated in that example, folders were created, but the instrumented class files and the METADATA file are not generated. I post the build script here:
I get the following output:
what kind of alteration should I do in order to generate those files?
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I also wrote a JUnit testcode for this file which also lies in the same directory
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I have finally made it. I am very happy that I was able to successfully integrate JUnit and Emma with Ant. Your little guidance was very helpful along the path.
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
| Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |








