Skip to content

Azure pipeline implementation for portman framework #394

Answered by thim81
shubhambajad asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shubhambajad

Portman is a NodeJS CLI package, so there are multiple ways to run them in an Azure Pipeline:

  • via a command/script in your package.json file
  • via NPX

Example via package.json

package.json >>

  "scripts": {
    "portman": "portman --cliOptionsFile configs/openapi-to-newman.json",
}

and next you setup a Azure Pipeline YAML file which contains the typical steps:

stages:
  - stage: run_portman_tests
    displayName: Run Portman tests
    jobs:
      - job:
        displayName: 'Execute Portman'
        steps:
          - checkout: self
            displayName: Git checkout
            persistCredentials: false
            submodules: true

          - task: NodeTool@0

Replies: 1 comment 1 reply

Comment options

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

Answer selected by thim81
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