Skip to content

erikbos/karate-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karate-action

api tests

A GitHub Action to run Karate tests.

Input parameters

Input Description
url URL to pass as script variable to a feature test
test One or more files or directories containing Karate tests
options Any command line options to pass to Karate

Example step

steps:
- name: Checkout
    uses: actions/[email protected]

- name: API tests
    uses: erikbos/karate-action@main
    with:
      url: https://api.isevenapi.xyz/api/
      tests: |
        example-tests/even-numbers.feature
        example-tests/odd-numbers.feature

Example workflow

See example api test workflow which runs two Karate feature tests from the example-tests directory.