Skip to content

Skip Contract Tests #675

Answered by thim81
jpjpjp asked this question in Q&A
Nov 13, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

I've not validated this but I think you have 2 options:

--includeTests, -t Inject Portman test suite (default: true)

example
portman crm.yml --includeTests false

BUT i'm not sure if this will still generate the other tests.

or

disable the contract tests.

tests:
  contractTests:
  - openApiOperation: "*::/*"
    statusSuccess:
      enabled: false
  - openApiOperation: "*::/*"
    responseTime:
      enabled: false
      maxMs: 300
  - openApiOperation: "*::/*"
    contentType:
      enabled: false
  - openApiOperation: "*::/*"
    jsonBody:
      enabled: false
  - openApiOperation: "*::/*"
    schemaValidation:
      enabled: false
  - openApiOperation: "*::/*"
    headersPresent:
      e…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@jpjpjp
Comment options

Answer selected by jpjpjp
Comment options

You must be logged in to vote
3 replies
@jpjpjp
Comment options

@thim81
Comment options

@jpjpjp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants