clirunner

A python test helper for invoking and testing command line interfaces (CLIs) based on Click's CliRunner (by RhetTbull)

Clirunner Alternatives

Similar projects and alternatives to clirunner based on common topics and language

  • fixtup

    Test python application beyond the code boundaries !

  • nose2

    The successor to nose, based on unittest2

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • pytypest

    Testing framework that empowers pytest (with better fixtures and parametrization)

  • pytest-cli-fixtures

    Automatically register fixtures for custom CLI arguments

  • q

    46 clirunner VS q

    q - Run SQL directly on delimited files and multi-file sqlite databases (by harelba)

  • jc

    96 clirunner VS jc

    CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better clirunner alternative or higher similarity.

clirunner reviews and mentions

Posts with mentions or reviews of clirunner. We have used some of these posts to build our list of alternatives and similar projects.
  • Test runner for command line projects (based on Click's CliRunner)
    1 project | /r/Python | 4 Dec 2023
    I love Click for building Python command line interfaces (CLI). One useful feature Click provides is a CliRunner() helper class for testing. CliRunner invokes the script in an isolated environment allowing you to pass arguments, etc. Occasionally I work on projects that don't use Click. For example, if I want to provide a python3 -m packagename script that is ancillary to the primary use case and don't want to include Click as a dependency or want something that can be distributes as a stand-alone script without dependencies. In this case I'd usually use argparse. However, CLIs built with argparse (or old-fashioned manual sys.argv parsing) aren't nearly as easy to test. Thus I created clirunner which is a port of Click's test helper to work with non-Click apps. The API is compatible with Click's CliRunner so if you ever move a project to use Click, the tests should need little to no modification.

Stats

Basic clirunner repo stats
1
5
8.0
5 months ago

RhetTbull/clirunner is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

The primary programming language of clirunner is Python.

Popular Comparisons


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com