https://github.com/klothoplatform/infra-tests
Repository for infrastructure & runtime integration tests (both applications and test harness)
https://github.com/klothoplatform/infra-tests
Last synced: 12 months ago
JSON representation
Repository for infrastructure & runtime integration tests (both applications and test harness)
- Host: GitHub
- URL: https://github.com/klothoplatform/infra-tests
- Owner: klothoplatform
- License: apache-2.0
- Created: 2023-02-28T18:56:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T17:28:42.000Z (about 3 years ago)
- Last Synced: 2025-03-05T19:35:00.805Z (over 1 year ago)
- Language: Python
- Size: 123 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# infra-tests
Repository for infrastructure & runtime integration tests (both applications and test harness)
# Running Tests
## Installing dependencies
1. Install `pipenv` if you don't already have it. (On Macs: `brew install pipenv`)
2. Run:
```
pipenv install
```
This will create a virtualenv for you, and install dependendencies into it.
## Running locally
* You must have an executable `klotho_main` at the root of this package (or a symlink to it).
* You may (optionally) have an executable `klotho_release` at the root of this package. If you do not, the runner will download the latest release and use that.
You can kick off individual runs with:
```bash
pipenv run tests ...
```
Example:
```
pipenv run tests --directories ts-app --region us-west-1 --provider aws
```
To load an interactive pipenv environment:
```bash
pipenv shell
```
Example:
```
$ pipenv shell
$ python3.10 runner/runner.py --directories ts-app --region us-west-1 --provider aws
```
# Developing infra tests
## Runner unit tests
The `runner` module itself has a set of unit tests. To run them:
```bash
pipenv run runner_unit_tests
```