Skip to main content

A command-line tool to create a Multipass instance and transfer a project to test to the newly created instance

Project description

Crashtest

codecov PyPI - Version PyPI - Downloads GitHub Workflow Status (with event)

Description

Crashtest is a command-line tool to create a Multipass instance and transfer a project to test to the newly created instance.

Requirements

Installation

$ pip3 install --upgrade crash-test-multipass

NOTE: After installing crash-test-multipass with pip if you have not added ~/.local/bin (macOS/Linux) to $PATH you will be asked to do so with a warning that should look like this:

WARNING: The script crash-test-multipass is installed in '/home/ubuntu/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Usage

Create a new instance and transfer a project

$ crashtest --instance-name INSTANCE_NAME --project PROJECT

Create a new instance, transfer a project and install the dependencies

NOTE: To install npm package dependencies, the latest stable version of nvm will be installed in the new multipass instance, which will install the latest LTS version of Node.

$ crashtest --instance-name INSTANCE_NAME --project PROJECT --install-dependencies

Execute a custom script

The script is executed in the home folder

$ crashtest --instance-name INSTANCE_NAME --project PROJECT --script SCRIPT

Delete the instance after finishing to test

$ crashtest --instance-name INSTANCE_NAME --project PROJECT --delete

Contributing

If you would like to contribute to this project just create a pull request which I will try to review as soon as possible.

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

crash_test_multipass-1.2.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

crash_test_multipass-1.2-py3-none-any.whl (28.4 kB view hashes)

Uploaded Python 3

Supported by

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