Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tarantool/cartridge-cli
Command-line utility to manage tarantool cartridge applications
https://github.com/tarantool/cartridge-cli
cartridge cli tarantool
Last synced: 4 days ago
JSON representation
Command-line utility to manage tarantool cartridge applications
- Host: GitHub
- URL: https://github.com/tarantool/cartridge-cli
- Owner: tarantool
- License: other
- Created: 2019-08-27T15:00:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T13:38:00.000Z (4 months ago)
- Last Synced: 2024-07-25T15:37:14.270Z (4 months ago)
- Topics: cartridge, cli, tarantool
- Language: Go
- Homepage:
- Size: 3.61 MB
- Stars: 49
- Watchers: 29
- Forks: 17
- Open Issues: 54
-
Metadata Files:
- Readme: README.dev.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
## How to run tests
### Requirements
1. Install [Go](https://go.dev/doc/install) 1.18.
```bash
go version
```2. Install [Python](https://www.python.org/downloads/) 3.x and [pip](https://pypi.org/project/pip/).
```bash
python3 --version
pip3 --version
```3. Install `unzip`, `rpm` and `cpio` packages.
```bash
unzip -v
rpm --version
cpio --version
```4. Install [git](https://git-scm.com/downloads).
```bash
git --version
```5. Install [docker](https://www.docker.com/get-started).
```bash
docker --version
```6. Install [Tarantool](https://www.tarantool.io/en/download/os-installation/) (1.10 or 2.x version).
```bash
tarantool --version
```7. Install [mage](https://github.com/magefile/mage).
```bash
mage --version
```
If something went wrong, this may help.
```bash
export PATH=$(go env GOPATH)/bin:$PATH
```8. Install [pytest](https://docs.pytest.org/en/6.2.x/getting-started.html).
```bash
python3 -m pytest --version
```9. Clone this repo.
```bash
git clone [email protected]:tarantool/cartridge-cli.git
cd ./cartridge-cli
```10. To run tests, git user must be configured. For example,
```bash
git config --global user.email "[email protected]"
git config --global user.name "Tar Antool"
```11. Install pytest dependencies.
```bash
pip3 install -r test/requirements.txt
```12. Install luacheck.
```bash
tarantoolctl rocks install luacheck
```13. Install lichen.
```bash
go install github.com/uw-labs/lichen@latest
```All remaining dependencies (like code generation) will be invoked with mage if needed.
### Test run
To run all tests, call
```bash
mage test
```You can run specific test sections.
```bash
# Static code analysis (including tests code).
mage lint
# Go unit tests.
mage unit
# pytest integration tests.
mage integration
# Run test example with pytest.
mage testExamples
# pytest end-to-end tests for packages.
mage e2e
```