crash-test-multipass


Namecrash-test-multipass JSON
Version 1.2 PyPI version JSON
download
home_pagehttps://github.com/utox39/crashtest
SummaryA command-line tool to create a Multipass instance and transfer a project to test to the newly created instance
upload_time2024-01-21 17:21:10
maintainer
docs_urlNone
authorutox39
requires_python>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Crashtest

[![codecov](https://codecov.io/gh/utox39/crashtest/graph/badge.svg?token=WH50XIU1V9)](https://codecov.io/gh/utox39/crashtest)
[<img alt="PyPI - Version" src="https://img.shields.io/pypi/v/crash-test-multipass">
](https://pypi.org/project/crash-test-multipass/)
[<img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dw/crash-test-multipass">
](https://pypistats.org/packages/crash-test-multipass)
[<img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/utox39/crashtest/.github%2Fworkflows%2Ftest-package.yml">
](https://github.com/utox39/crashtest/actions)
---

- [Description](#description)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)

## Description

Crashtest is a command-line tool to create a [Multipass](https://multipass.run/) instance and transfer a project to test
to the newly created instance.

## Requirements

- Python 3
- [Multipass](https://multipass.run/)

## Installation

```console
$ 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:

```console
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

```console
$ 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](https://github.com/nvm-sh/nvm) will be
installed in the new multipass instance, which will install the latest LTS version of Node.

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

#### Execute a custom script

> The script is executed in the home folder

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

#### Delete the instance after finishing to test

```console
$ 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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/utox39/crashtest",
    "name": "crash-test-multipass",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "",
    "author": "utox39",
    "author_email": "francescomoccaldi39@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/07/89/2156f19d9ba3f26efc4dda5113c0c73610ba33d01d726c5dcc1a6796dd49/crash_test_multipass-1.2.tar.gz",
    "platform": null,
    "description": "# Crashtest\n\n[![codecov](https://codecov.io/gh/utox39/crashtest/graph/badge.svg?token=WH50XIU1V9)](https://codecov.io/gh/utox39/crashtest)\n[<img alt=\"PyPI - Version\" src=\"https://img.shields.io/pypi/v/crash-test-multipass\">\n](https://pypi.org/project/crash-test-multipass/)\n[<img alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dw/crash-test-multipass\">\n](https://pypistats.org/packages/crash-test-multipass)\n[<img alt=\"GitHub Workflow Status (with event)\" src=\"https://img.shields.io/github/actions/workflow/status/utox39/crashtest/.github%2Fworkflows%2Ftest-package.yml\">\n](https://github.com/utox39/crashtest/actions)\n---\n\n- [Description](#description)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n\n## Description\n\nCrashtest is a command-line tool to create a [Multipass](https://multipass.run/) instance and transfer a project to test\nto the newly created instance.\n\n## Requirements\n\n- Python 3\n- [Multipass](https://multipass.run/)\n\n## Installation\n\n```console\n$ pip3 install --upgrade crash-test-multipass\n```\n\nNOTE: After installing crash-test-multipass with pip if you have not added ~/.local/bin (macOS/Linux) to $PATH you will\nbe asked to do so with a warning that should look like this:\n\n```console\nWARNING: The script crash-test-multipass is installed in '/home/ubuntu/.local/bin' which is not on PATH.\nConsider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n```\n\n## Usage\n\n#### Create a new instance and transfer a project\n\n```console\n$ crashtest --instance-name INSTANCE_NAME --project PROJECT\n```\n\n#### Create a new instance, transfer a project and install the dependencies\n\nNOTE: To install npm package dependencies, the latest stable version of [nvm](https://github.com/nvm-sh/nvm) will be\ninstalled in the new multipass instance, which will install the latest LTS version of Node.\n\n```console\n$ crashtest --instance-name INSTANCE_NAME --project PROJECT --install-dependencies\n```\n\n#### Execute a custom script\n\n> The script is executed in the home folder\n\n```console\n$ crashtest --instance-name INSTANCE_NAME --project PROJECT --script SCRIPT\n```\n\n#### Delete the instance after finishing to test\n\n```console\n$ crashtest --instance-name INSTANCE_NAME --project PROJECT --delete\n```\n\n## Contributing\n\nIf you would like to contribute to this project just create a pull request which I will try to review as soon as\npossible.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A command-line tool to create a Multipass instance and transfer a project to test to the newly created instance",
    "version": "1.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/utox39/crashtest/issues",
        "Homepage": "https://github.com/utox39/crashtest",
        "Repository": "https://github.com/utox39/crashtest/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "33a02b9ddf6f6012c7bc1e6de19b37e7c4aaf202eac9c5058e65a25884e69d55",
                "md5": "3621874ad41e7693e1a968c72b1192d0",
                "sha256": "cc3ba89de0904084ac03b320ab88936b84e9d35949d8656673a428409a9b14a8"
            },
            "downloads": -1,
            "filename": "crash_test_multipass-1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3621874ad41e7693e1a968c72b1192d0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 28383,
            "upload_time": "2024-01-21T17:21:09",
            "upload_time_iso_8601": "2024-01-21T17:21:09.447053Z",
            "url": "https://files.pythonhosted.org/packages/33/a0/2b9ddf6f6012c7bc1e6de19b37e7c4aaf202eac9c5058e65a25884e69d55/crash_test_multipass-1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "07892156f19d9ba3f26efc4dda5113c0c73610ba33d01d726c5dcc1a6796dd49",
                "md5": "717ef44868c7d67c95ff9c1d11ab3ccd",
                "sha256": "487da1c693a89d657ab466347581ddd6a30d0f246aad694b2f2d5c47de756287"
            },
            "downloads": -1,
            "filename": "crash_test_multipass-1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "717ef44868c7d67c95ff9c1d11ab3ccd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 18593,
            "upload_time": "2024-01-21T17:21:10",
            "upload_time_iso_8601": "2024-01-21T17:21:10.630551Z",
            "url": "https://files.pythonhosted.org/packages/07/89/2156f19d9ba3f26efc4dda5113c0c73610ba33d01d726c5dcc1a6796dd49/crash_test_multipass-1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-21 17:21:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "utox39",
    "github_project": "crashtest",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "crash-test-multipass"
}
        
Elapsed time: 0.18295s