I'm new to Clover and I would like to apply test coverage to a J2EE web application with Websphere server. I am wondering that is it possible to run it without providing junit test cases ? in other words, is it possible to execute test cases from the browser on the fly since it's a web application ? for example, the user will be clicking around on the browser, and Clover will be sitting on the back tracking which method or class from which servlet that is being called and excuted, and then generate a report at the end based on that.
If so, can you give me instructions or example on how to do it on Eclipse ?
I have the same question. In our sprint lifecycle, progression of tests is as follows:
0. Develop unit (JUnit) tests
1. Sanity tests ahead of hand over to QA
2. QA tests
3. Full regression test (priori to FCS)
I would like to build uo coverage metrics cumulatively fro (0) through (3).
Would Clover enable me to do this? Pl note that tests (2) and (3) are most likely executed by hand (using the
Yes, you can measure code coverage for any code which has been instrumented, no matter whether it's executed as a unit test or manually.
In order to run server-based test you will need to change flushing policy to "threaded" or "interval" (unless you will shutdown Websphere). More details on Working+with+Distributed+Applications and Using+a+Flush+Policy pages.
Please note that:
I've just found this after asking myself https://answers.atlassian.com/questions/62200/no-coverage-being-generated-from-weblogic-hosted-instrumented-ear
I've followed these isntructions with no coverage output being produced. Is there additional troubleshooting/debug information available?
I mentioned about merging of database files, but this has to be done after running tests. In general we have two approaches for multi-module builds:
clover2:instrument or clover2:setupgoals), run whole application, (no need to merge), next generate a coverage report
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot