I have published my first contract to PactFlow. I ...
# pactflow
e
I have published my first contract to PactFlow. I am doing BiDirectional contract testing. I published the contract but PactFlow is complaining that I did not publish the self verification test result. I am using Spring Cloud Contract to verify the contract before publishing. Can I use those results and push them to PactFlow or do I have to use Pact?
y
Hey bud, yes you can post your test run output to PactFlow, and the success or failure of the test run. We normally connect these as an output of the test run, so they publish with the corresponding exit code from the tests. https://docs.pactflow.io/docs/bi-directional-contract-testing/publishing#usage These are the options you would need 1 of the following for your self-verification result.
Copy code
[--verification-success], [--no-verification-success]
              # Whether or not the self verification passed successfully.
      [--verification-exit-code=N]
              # The exit code of the verification process. Can be used instead
                of --verification-success|--no-verification-success for a
                simpler build script.
and the following parameters for uploading the report file. Note the report file can any content, it's more of a convenience for users of your system so they can reference the test results from your providers own test suite (which isn't Pact)
Copy code
[--verification-results=VERIFICATION_RESULTS]
              # The path to the file containing the output from the
                verification process
      [--verification-results-content-type=VERIFICATION_RESULTS_CONTENT_TYPE]
              # The content type of the verification output eg. text/plain,
                application/yaml
      [--verification-results-format=VERIFICATION_RESULTS_FORMAT]
              # The format of the verification output eg. junit, text
      [--verifier=VERIFIER]
              # The tool used to verify the provider contract
      [--verifier-version=VERIFIER_VERSION]
              # The version of the tool used to verify the provider contract
☝️ 1
m
How are you verifying with SCC may I ask?