Skip to content

Documenation has some incorrect and missing information #2

@steve1337

Description

@steve1337

Problem

Some information in the https://github.com/karatelabs/karate-cli/blob/main/README.md is not correct

Issues

1. Configuration

❌ It says

Global config: ~/.karate/karate-cli.json
Project config: .karate/karate.json

✅ But should be

Global config: ~/.karate/karate-cli.json
Project config: .karate/karate-cli.json

2. Commands

❌ It is

Command Description
karate setup Interactive setup wizard
karate setup --all Non-interactive setup (JAR + JRE)
karate setup --item jar Install JAR only (use system JRE)
karate setup --item jre Install JRE only
karate update Check for and install updates
karate update --all Update all components non-interactively
karate doctor System diagnostics
karate doctor --json JSON output (for CI/scripts)
karate version Show version info

To update the CLI itself, re-run the install command.

All other commands pass through to Karate:

karate test.feature           # Run tests
karate -t @smoke test.feature # Run with tags
karate mock server.js         # Start mock server

✅ But IMO should include

Command Description
karate setup Interactive setup wizard
karate setup --all Non-interactive setup (JAR + JRE)
karate setup --item jar Install JAR only (use system JRE)
karate setup --item jre Install JRE only
karate update Check for and install updates to LATEST version
karate update --all Update all components non-interactively to LATEST version
karate doctor System diagnostics
karate doctor --json JSON output (for CI/scripts)
karate version Show version info

The setup command will install pinned version in the config file or LATEST if not specified.
The setup command has an additional option --force to force a re-download of JAR and / or JRE.

To update the CLI itself, re-run the install command.

All other commands pass through to Karate:

karate test.feature           # Run tests
karate ./tests                # Run all tests in directory
karate -t @smoke test.feature # Run with tags
karate mock server.js         # Start mock server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions