InterviewSolution
| 1. |
Cobertura Only Writes The Coverage Data File When The Application Server Shuts Down. We Do Not Want To Stop Our Application Server After Running Our Tests.? |
|
Answer» It is possible to instruct COBERTURA to write the data FILE. One of your classes should call the static method net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(). For example: you could add something like this to a “logout” method in your WEB application: It is possible to instruct Cobertura to write the data file. One of your classes should call the static method net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(). For example: you could add something like this to a “logout” method in your web application: |
|