Allow to generate a report in junit format

This change allows to generate a report in junit format
by passing the parameter --junit <myreport.xml>.