Skip to main content

Smart Tests CLI

Project description

Usage

See https://help.launchableinc.com/resources/cli-reference/ and https://help.launchableinc.com/sending-data-to-launchable/using-the-launchable-cli/getting-started/.

Development

Preparation

We recommend uv for dependency management:

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies
uv sync --dev

In order to automatically format files with autopep8, this repository contains a configuration for pre-commit. Install the hook with uv run pre-commit install.

Load development environment

# Activate virtual environment
source .venv/bin/activate
# or use uv run for individual commands
uv run <command>

Run tests cli

# Using poethepoet (recommended)
uv run poe test

# Direct command
uv run python -m unittest

Run tests exe_deploy.jar

bazel test ...

Available Development Tasks

This project uses poethepoet for task management. Available tasks:

# Show all available tasks
uv run poe --help

# Run tests
uv run poe test

# Run tests with XML output
uv run poe test-xml

# Run linting
uv run poe lint

# Run type checking
uv run poe type

# Format code
uv run poe format

# Build package
uv run poe build

# Install package locally
uv run poe install

Add dependency

# Add runtime dependency
uv add some-package

# Add development dependency
uv add --dev some-dev-package

Updating Python Version

When updating the Python version requirement, update the following files:

  1. .python-version - Used by pyenv, uv, and local development
  2. pyproject.toml - Update requires-python = ">=X.Y"
  3. setup.cfg - Update python_requires = >=X.Y
  4. .github/workflows/python-package.yml - Update python-version: ["X.Y"]
  5. .github/workflows/python-publish.yml - Update uv python install X.Y
  6. README.md - Update prerequisite section
  7. CLAUDE.md - Update development notes

How to release

Create new release on Github, then Github Actions automatically uploads the module to PyPI.

How to update smart_tests/jar/exe_deploy.jar

./build-java.sh

Installing CLI

You can install the smart-tests command from either source or pypi.

Prerequisite

  • >= Python 3.13
  • >= Java 8

Install from source

$ pwd
~/cli

$ python setup.py install

Install from pypi

$ pip3 install --user --upgrade smart-tests~=1.0

Versioning

This module follows Semantic versioning such as X.Y.Z.

  • Major (X)
    • Drastic update breaking backward compatibility
  • Minor (Y)
    • Add new plugins, options with backward compatibility
  • Patch (Z)-
    • Fix bugs or minor behaviors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_tests_cli-2.0.0.tar.gz (11.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_tests_cli-2.0.0-py3-none-any.whl (11.4 MB view details)

Uploaded Python 3

File details

Details for the file smart_tests_cli-2.0.0.tar.gz.

File metadata

  • Download URL: smart_tests_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 11.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for smart_tests_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 df31b794c602f9137375ef6837e61dbd3371b1e8224cff127f8e67ef895c3398
MD5 72a1586731eead24485dc50ff2d129ad
BLAKE2b-256 7a3b11ef8117d2596c03bd37c8b8b4e6cafc524a5c3bbbf32a906f4c8a91548c

See more details on using hashes here.

File details

Details for the file smart_tests_cli-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_tests_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1de96e6dd85b01daccd0cf3bdc7e160f73c9c13aecf8569bac67859921c9c1fc
MD5 fe2f454e5ec7fd31eac64a8a9cc8ebca
BLAKE2b-256 9af7d50a98992c70813894dd4f4398ebbc6045674d51fdca0d3076117a0189a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page