Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.2 KB

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.