Is there a maven plugin that can distinguish between files and output the result to a file?

I am working on integration tests for a Java web service. The integration test now sends SOAP requests to the server, which are approved through the SoapUI plugin, and for each of the SOAP requests an XML file is created and saved (part of the integration phase).

Is there a plugin that allows me to distinguish between xml files that were output and saved against a similar set of xml files that were created in an earlier run? The idea is to unzip the xml files from the previous release version with the current version to make sure that the expected changes have been made to the xml files.

I hope my question is clear enough. thanks in advance

EDIT: The xml files I would like to compare will be copied to the directory (say target / compare_against) by the person who runs the test. They are not under SCM.

+3
source share
2 answers

The only plugin that will make it native is scm , and only if you have a different version of the file transferred to the repository. (I say “initially” because it probably just runs diff in the subprocess inside of itself.) I mention this because your question is not entirely clear about how you store data from previous runs.

If this does not work, you will find the antrun plugin.

+2
source

Maven, . , Ant Task ( ?), antrun . - xmldiff Maven/ Ant , , .

+2

Source: https://habr.com/ru/post/1757412/


All Articles