dss icon indicating copy to clipboard operation
dss copied to clipboard

DSS-2393 Junit tests for eSignature validation test cases

Open ncoroy opened this issue 3 years ago • 0 comments

DSS-2393 Junit tests for eSignature validation test cases

This new module named "dss-validation-esig-test" is a proposal for addressing DSS-2393. It contains only Junit tests, which dynamically download the cases from "eSignature validation test cases" project, and run them.

At the time of creation of this pull request : 92 Tests are run, of which 28 fail (unexpected qualification level), as described in DSS-2291. This new module was not added to the parent pom, to prevent any test failure in the global build.

By default, all validation cases are run. In order to run a specific set or a single validation case, a parameter named "eSigTestPrefixFilter" may be passed on command line to filter the tests run, based on their numeric prefix.

Examples :

  • mvn clean install => Runs all tests (i.e. all cases listed on https://webgate.ec.europa.eu/esig-validation-tests/testcases)
  • mvn clean install -DargLine="-DeSigTestPrefixFilter=3.2.1-" => would run only test 3.2.1
  • mvn clean install -DargLine="-DeSigTestPrefixFilter=2." => would run all 2.. tests

ncoroy avatar Feb 23 '21 13:02 ncoroy