753: Add PMD ruleset and integrate PMD with the build

Test Case #: 753

Test Case Name: Reverse proxy server deployment (nginx)

System: OpenLMIS

Subsystem:Requisition, Template - service, Example

Test case designed by: Anna Czyrko

Design Date:25.07.2016

Short description

PMD is a code analyzer tool, that helps to find common flaws in the code, such as unused code and other anti-patterns. To keep the code clean, we should add the PMD plugin to check our production source files.

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

openlmis-example repository

 

Go to Jenkins. Select Project OpenLMIS-example and check Latest Test Result.

Should appear 0 Failures.

openlmis-requisition repository

 

Go to Jenkins. Select Project OpenLMIS-requisition-service and check Latest Test Result.

Should appear 0 Failures.

openlmis-template-service repository

 

Go to Jenkins. Select Project OpenLMIS-template-service and check Latest Test Result.

Should appear 0 Failures.

 

Post – conditions:

                                                                                                                   

OpenLMIS: the global initiative for powerful LMIS software